Index: src/core/SkImageFilter.cpp |
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp |
index 4c4b56beace2f60b9ff858e70c76cd6c1f3b2cd7..5a5d5bd822b6e6db60cc540c2220467304029f8f 100644 |
--- a/src/core/SkImageFilter.cpp |
+++ b/src/core/SkImageFilter.cpp |
@@ -204,9 +204,8 @@ bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Cont |
matrix.postTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top())); |
this->asNewEffect(&effect, srcTexture, matrix, bounds); |
SkASSERT(effect); |
- SkAutoUnref effectRef(effect); |
GrPaint paint; |
- paint.addColorEffect(effect); |
+ paint.addColorEffect(effect)->unref(); |
context->drawRectToRect(paint, dstRect, srcRect); |
SkAutoTUnref<GrTexture> resultTex(dst.detach()); |
@@ -299,7 +298,7 @@ bool SkImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, |
return true; |
} |
-bool SkImageFilter::asNewEffect(GrEffectRef**, GrTexture*, const SkMatrix&, const SkIRect&) const { |
+bool SkImageFilter::asNewEffect(GrEffect**, GrTexture*, const SkMatrix&, const SkIRect&) const { |
return false; |
} |