Index: src/effects/SkImageSource.cpp |
diff --git a/src/effects/SkImageSource.cpp b/src/effects/SkImageSource.cpp |
index f16e5a140fcdcae62d45d593c79e3ae96681bb4e..cf8cae2c3919da8634e3b40ac8b5cbd786ebdf80 100644 |
--- a/src/effects/SkImageSource.cpp |
+++ b/src/effects/SkImageSource.cpp |
@@ -35,7 +35,7 @@ SkImageSource::SkImageSource(sk_sp<SkImage> image, |
, fFilterQuality(filterQuality) { |
} |
-SkFlattenable* SkImageSource::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkImageSource::CreateProc(SkReadBuffer& buffer) { |
SkFilterQuality filterQuality = (SkFilterQuality)buffer.readInt(); |
SkRect src, dst; |
@@ -47,7 +47,7 @@ SkFlattenable* SkImageSource::CreateProc(SkReadBuffer& buffer) { |
return nullptr; |
} |
- return SkImageSource::Make(std::move(image), src, dst, filterQuality).release(); |
+ return SkImageSource::Make(std::move(image), src, dst, filterQuality); |
} |
void SkImageSource::flatten(SkWriteBuffer& buffer) const { |