Index: src/effects/SkXfermodeImageFilter.cpp |
diff --git a/src/effects/SkXfermodeImageFilter.cpp b/src/effects/SkXfermodeImageFilter.cpp |
index db0b5e59bbfc0beb518b80ca72809336aac7e709..45c9f70568c714711fb1486e42dc490d33b50b6a 100644 |
--- a/src/effects/SkXfermodeImageFilter.cpp |
+++ b/src/effects/SkXfermodeImageFilter.cpp |
@@ -37,11 +37,11 @@ SkXfermodeImageFilter::SkXfermodeImageFilter(sk_sp<SkXfermode> mode, |
, fMode(std::move(mode)) |
{} |
-SkFlattenable* SkXfermodeImageFilter::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkXfermodeImageFilter::CreateProc(SkReadBuffer& buffer) { |
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 2); |
sk_sp<SkXfermode> mode(buffer.readXfermode()); |
- return Make(std::move(mode), common.getInput(0).get(), |
- common.getInput(1).get(), &common.cropRect()).release(); |
+ return Make(std::move(mode), common.getInput(0).get(), common.getInput(1).get(), |
+ &common.cropRect()); |
} |
void SkXfermodeImageFilter::flatten(SkWriteBuffer& buffer) const { |