| Index: src/effects/SkAlphaThresholdFilter.cpp
|
| diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp
|
| index 7215aa83723ec774e0ef233f16e649ac3fd4c262..c63e64e2cc4fed2947b4f9f298ae0387b1a1ac82 100644
|
| --- a/src/effects/SkAlphaThresholdFilter.cpp
|
| +++ b/src/effects/SkAlphaThresholdFilter.cpp
|
| @@ -285,14 +285,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);
|
|
|