diff options
author | 2015-07-31 13:59:30 -0700 | |
---|---|---|
committer | 2015-07-31 13:59:31 -0700 | |
commit | eae6200acbec2255ac00ab363ffbe16758ec9076 (patch) | |
tree | a37be1fb02820c40d0ad99366b557997d6b78831 /src/gpu/GrDrawTarget.cpp | |
parent | 77d89f7dd243a17452d3a5f16a98622993e6bdd9 (diff) |
Some cleanup in GrTextureProvider and GrResourceProvider.
Review URL: https://codereview.chromium.org/1261643004
Diffstat (limited to 'src/gpu/GrDrawTarget.cpp')
-rw-r--r-- | src/gpu/GrDrawTarget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp index 60dd58693a..0049767e8b 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"); |