Dawn: update to recent texture proxy changes.
Change-Id: I8f2b862d5631f4c9a2e2653ebd498f401ed1f949
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/252185
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
diff --git a/src/gpu/dawn/GrDawnProgramBuilder.cpp b/src/gpu/dawn/GrDawnProgramBuilder.cpp
index 9fc0765..e63cd9a 100644
--- a/src/gpu/dawn/GrDawnProgramBuilder.cpp
+++ b/src/gpu/dawn/GrDawnProgramBuilder.cpp
@@ -536,9 +536,8 @@
SkIPoint offset;
GrTexture* dstTexture = pipeline.peekDstTexture(&offset);
fXferProcessor->setData(fDataManager, pipeline.getXferProcessor(), dstTexture, offset);
- if (GrTextureProxy* proxy = pipeline.dstTextureProxy()) {
- GrFragmentProcessor::TextureSampler sampler(sk_ref_sp(proxy));
- setTexture(gpu, sampler.samplerState(), sampler.peekTexture(), &bindings, &binding);
+ if (dstTexture) {
+ setTexture(gpu, GrSamplerState::ClampNearest(), dstTexture, &bindings, &binding);
}
fDataManager.uploadUniformBuffers(gpu, slice);
wgpu::BindGroupDescriptor descriptor;