Index: src/effects/SkMergeImageFilter.cpp |
diff --git a/src/effects/SkMergeImageFilter.cpp b/src/effects/SkMergeImageFilter.cpp |
index cd16d43db3e65424cfef26c910bb3afbfbf4f46b..44e6caf087e90fc8f074d0cbf55affe0b7e65ea9 100755 |
--- a/src/effects/SkMergeImageFilter.cpp |
+++ b/src/effects/SkMergeImageFilter.cpp |
@@ -131,7 +131,7 @@ sk_sp<SkSpecialImage> SkMergeImageFilter::onFilterImage(SkSpecialImage* source, |
return surf->makeImageSnapshot(); |
} |
-SkFlattenable* SkMergeImageFilter::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkMergeImageFilter::CreateProc(SkReadBuffer& buffer) { |
Common common; |
if (!common.unflatten(buffer, -1)) { |
return nullptr; |
@@ -152,9 +152,9 @@ SkFlattenable* SkMergeImageFilter::CreateProc(SkReadBuffer& buffer) { |
if (!buffer.isValid()) { |
return nullptr; |
} |
- return Make(common.inputs(), count, modes.get(), &common.cropRect()).release(); |
+ return Make(common.inputs(), count, modes.get(), &common.cropRect()); |
} |
- return Make(common.inputs(), count, nullptr, &common.cropRect()).release(); |
+ return Make(common.inputs(), count, nullptr, &common.cropRect()); |
} |
void SkMergeImageFilter::flatten(SkWriteBuffer& buffer) const { |