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