Index: src/effects/SkPaintImageFilter.cpp |
diff --git a/src/effects/SkPaintImageFilter.cpp b/src/effects/SkPaintImageFilter.cpp |
index 4462b757f5fdead8e9d3ec514f7f1df719a6e1a4..f561928684a8ca2644c621424a699333ca5aca29 100644 |
--- a/src/effects/SkPaintImageFilter.cpp |
+++ b/src/effects/SkPaintImageFilter.cpp |
@@ -17,11 +17,11 @@ SkPaintImageFilter::SkPaintImageFilter(const SkPaint& paint, const CropRect* cro |
, fPaint(paint) { |
} |
-SkFlattenable* SkPaintImageFilter::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkPaintImageFilter::CreateProc(SkReadBuffer& buffer) { |
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 0); |
SkPaint paint; |
buffer.readPaint(&paint); |
- return SkPaintImageFilter::Make(paint, &common.cropRect()).release(); |
+ return SkPaintImageFilter::Make(paint, &common.cropRect()); |
} |
void SkPaintImageFilter::flatten(SkWriteBuffer& buffer) const { |