GrRenderTargetContext->GrSurfaceDrawContext
Just the class/files. variable names and additional comments to follow.
Change-Id: Ic03d07fd5009eaf3d706c2536486a117328963fc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342617
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/GrSurfaceProxy.cpp b/src/gpu/GrSurfaceProxy.cpp
index 78e5ac8..a588da3 100644
--- a/src/gpu/GrSurfaceProxy.cpp
+++ b/src/gpu/GrSurfaceProxy.cpp
@@ -18,8 +18,8 @@
#include "src/gpu/GrOpsTask.h"
#include "src/gpu/GrProxyProvider.h"
#include "src/gpu/GrRecordingContextPriv.h"
-#include "src/gpu/GrRenderTargetContext.h"
#include "src/gpu/GrSurface.h"
+#include "src/gpu/GrSurfaceDrawContext.h"
#include "src/gpu/GrTexture.h"
#include "src/gpu/GrTextureRenderTargetProxy.h"
@@ -291,19 +291,19 @@
}
}
if (src->asTextureProxy()) {
- auto dstContext = GrRenderTargetContext::Make(context,
- nullptr,
- fit,
- {width, height},
- format,
- /* sample count*/ 1,
- mipMapped,
- src->isProtected(),
- GrSwizzle::RGBA(),
- GrSwizzle::RGBA(),
- origin,
- budgeted,
- /*surface props*/ nullptr);
+ auto dstContext = GrSurfaceDrawContext::Make(context,
+ nullptr,
+ fit,
+ {width, height},
+ format,
+ /* sample count*/ 1,
+ mipMapped,
+ src->isProtected(),
+ GrSwizzle::RGBA(),
+ GrSwizzle::RGBA(),
+ origin,
+ budgeted,
+ /*surface props*/ nullptr);
GrSurfaceProxyView view(sk_ref_sp(src), origin, GrSwizzle::RGBA());
if (dstContext && dstContext->blitTexture(std::move(view), srcRect, dstPoint)) {
return dstContext->asSurfaceProxyRef();