Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index 37faacf38347af03fa4230178a9973c250350a44..edcf395da7e99633f46265b159a1a76d6703be91 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -95,8 +95,8 @@ bool GrDrawTarget::setupDstReadIfNecessary(const GrPipelineBuilder& pipelineBuil |
desc.fWidth = copyRect.width(); |
desc.fHeight = copyRect.height(); |
- SkAutoTUnref<GrTexture> copy( |
- fResourceProvider->refScratchTexture(desc, GrTextureProvider::kApprox_ScratchTexMatch)); |
+ static const uint32_t kFlags = 0; |
+ SkAutoTUnref<GrTexture> copy(fResourceProvider->createApproxTexture(desc, kFlags)); |
if (!copy) { |
SkDebugf("Failed to create temporary copy of destination texture.\n"); |