Use GrSurfaceProxyView for dst proxies.
Bug: skia:9556
Change-Id: I41ae112a3d22f6c6481cba1afc3937b5e5115cf5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/252043
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/glsl/GrGLSLProgramBuilder.cpp b/src/gpu/glsl/GrGLSLProgramBuilder.cpp
index 8cdf43d..906cd99 100644
--- a/src/gpu/glsl/GrGLSLProgramBuilder.cpp
+++ b/src/gpu/glsl/GrGLSLProgramBuilder.cpp
@@ -248,12 +248,13 @@
SamplerHandle dstTextureSamplerHandle;
GrSurfaceOrigin dstTextureOrigin = kTopLeft_GrSurfaceOrigin;
- if (GrTextureProxy* dstTextureProxy = this->pipeline().dstTextureProxy()) {
+ const GrSurfaceProxyView& dstView = this->pipeline().dstProxyView();
+ if (GrTextureProxy* dstTextureProxy = dstView.asTextureProxy()) {
// GrProcessor::TextureSampler sampler(dstTexture);
- const GrSwizzle& swizzle = dstTextureProxy->textureSwizzle();
+ const GrSwizzle& swizzle = dstView.swizzle();
dstTextureSamplerHandle = this->emitSampler(dstTextureProxy, GrSamplerState(),
swizzle, "DstTextureSampler");
- dstTextureOrigin = dstTextureProxy->origin();
+ dstTextureOrigin = dstView.origin();
SkASSERT(dstTextureProxy->textureType() != GrTextureType::kExternal);
}