| Index: src/effects/SkAlphaThresholdFilter.cpp
|
| diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp
|
| index 823c3028c51e76df00aa7c188f41a3eb5c0b5be6..025a757b798132efff48129a40993ad5dc4a8c3f 100644
|
| --- a/src/effects/SkAlphaThresholdFilter.cpp
|
| +++ b/src/effects/SkAlphaThresholdFilter.cpp
|
| @@ -284,14 +284,14 @@ bool SkAlphaThresholdFilterImpl::asFragmentProcessor(GrFragmentProcessor** fp,
|
| // the outside.
|
| maskDesc.fWidth = texture->width();
|
| maskDesc.fHeight = texture->height();
|
| - GrAutoScratchTexture ast(context, maskDesc, GrContext::kApprox_ScratchTexMatch);
|
| - GrTexture* maskTexture = ast.texture();
|
| - if (NULL == maskTexture) {
|
| + SkAutoTUnref<GrTexture> maskTexture(
|
| + context->refScratchTexture(maskDesc, GrContext::kApprox_ScratchTexMatch));
|
| + if (!maskTexture) {
|
| return false;
|
| }
|
|
|
| {
|
| - GrContext::AutoRenderTarget art(context, ast.texture()->asRenderTarget());
|
| + GrContext::AutoRenderTarget art(context, maskTexture->asRenderTarget());
|
| GrPaint grPaint;
|
| grPaint.setBlendFunc(kOne_GrBlendCoeff, kZero_GrBlendCoeff);
|
| SkRegion::Iterator iter(fRegion);
|
|
|