| Index: src/gpu/GrLayerCache.cpp
|
| diff --git a/src/gpu/GrLayerCache.cpp b/src/gpu/GrLayerCache.cpp
|
| index 3948d7e05acaef5873c9f02c2538ca4959cfb0d6..4d5f2b46f8b967e0105735fcdc589110cba14dd1 100644
|
| --- a/src/gpu/GrLayerCache.cpp
|
| +++ b/src/gpu/GrLayerCache.cpp
|
| @@ -250,12 +250,13 @@ bool GrLayerCache::lock(GrCachedLayer* layer, const GrSurfaceDesc& desc, bool* n
|
| }
|
|
|
| // TODO: make the test for exact match depend on the image filters themselves
|
| - GrTextureProvider::ScratchTexMatch usage = GrTextureProvider::kApprox_ScratchTexMatch;
|
| + SkAutoTUnref<GrTexture> tex;
|
| if (layer->fFilter) {
|
| - usage = GrTextureProvider::kExact_ScratchTexMatch;
|
| + tex.reset(fContext->textureProvider()->createTexture(desc, true));
|
| + } else {
|
| + tex.reset(fContext->textureProvider()->createApproxTexture(desc));
|
| }
|
|
|
| - SkAutoTUnref<GrTexture> tex(fContext->textureProvider()->refScratchTexture(desc, usage));
|
| if (!tex) {
|
| return false;
|
| }
|
|
|