Index: src/effects/SkXfermodeImageFilter.cpp |
diff --git a/src/effects/SkXfermodeImageFilter.cpp b/src/effects/SkXfermodeImageFilter.cpp |
index bca5223db4cfa24446ba99c6cbb03f4454eb407c..a50978e39ba4a559765fd862b3481f6582eac756 100644 |
--- a/src/effects/SkXfermodeImageFilter.cpp |
+++ b/src/effects/SkXfermodeImageFilter.cpp |
@@ -139,13 +139,11 @@ bool SkXfermodeImageFilter::filterImageGPU(Proxy* proxy, |
desc.fWidth = src.width(); |
desc.fHeight = src.height(); |
desc.fConfig = kSkia8888_GrPixelConfig; |
- |
- GrAutoScratchTexture ast(context, desc); |
- if (NULL == ast.texture()) { |
+ SkAutoTUnref<GrTexture> dst( |
+ context->refScratchTexture(desc, GrContext::kApprox_ScratchTexMatch)); |
+ if (!dst) { |
return false; |
} |
- SkAutoTUnref<GrTexture> dst(ast.detach()); |
- |
GrContext::AutoRenderTarget art(context, dst->asRenderTarget()); |
if (!fMode || !fMode->asFragmentProcessor(&xferProcessor, backgroundTex)) { |