Index: src/effects/SkPaintImageFilter.cpp |
diff --git a/src/effects/SkPaintImageFilter.cpp b/src/effects/SkPaintImageFilter.cpp |
index 02387cefc3602336fd3a28fe0de363d5a565e349..7056f26863fcba0cd2bb9ca85db03800a5df42db 100644 |
--- a/src/effects/SkPaintImageFilter.cpp |
+++ b/src/effects/SkPaintImageFilter.cpp |
@@ -33,9 +33,9 @@ void SkPaintImageFilter::flatten(SkWriteBuffer& buffer) const { |
buffer.writePaint(fPaint); |
} |
-SkSpecialImage* SkPaintImageFilter::onFilterImage(SkSpecialImage* source, |
- const Context& ctx, |
- SkIPoint* offset) const { |
+sk_sp<SkSpecialImage> SkPaintImageFilter::onFilterImage(SkSpecialImage* source, |
+ const Context& ctx, |
+ SkIPoint* offset) const { |
SkIRect bounds; |
const SkIRect srcBounds = SkIRect::MakeWH(source->width(), source->height()); |
if (!this->applyCropRect(ctx, srcBounds, &bounds)) { |
@@ -67,7 +67,7 @@ SkSpecialImage* SkPaintImageFilter::onFilterImage(SkSpecialImage* source, |
offset->fX = bounds.fLeft; |
offset->fY = bounds.fTop; |
- return surf->makeImageSnapshot().release(); |
+ return surf->makeImageSnapshot(); |
} |
bool SkPaintImageFilter::canComputeFastBounds() const { |