Index: src/effects/SkAlphaThresholdFilter.cpp |
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp |
index bf2a3fda1c1998d6256925d8637a8c9f253e20a7..bfbcfd21f8b959e8acfeeab9fc0c0e41a032457c 100644 |
--- a/src/effects/SkAlphaThresholdFilter.cpp |
+++ b/src/effects/SkAlphaThresholdFilter.cpp |
@@ -111,7 +111,8 @@ sk_sp<GrTexture> SkAlphaThresholdFilterImpl::createMaskTexture(GrContext* contex |
return nullptr; |
} |
- sk_sp<GrDrawContext> drawContext(context->drawContext(maskTexture->asRenderTarget())); |
+ sk_sp<GrDrawContext> drawContext( |
+ context->drawContext(sk_ref_sp(maskTexture->asRenderTarget()))); |
if (!drawContext) { |
return nullptr; |
} |