Index: src/image/SkImageShader.cpp |
diff --git a/src/image/SkImageShader.cpp b/src/image/SkImageShader.cpp |
index 00c038ab88511fb86c3f6aef4e12f96cb4242090..d12ee030a2a19a921a75d778e5521626a0f8a589 100644 |
--- a/src/image/SkImageShader.cpp |
+++ b/src/image/SkImageShader.cpp |
@@ -19,7 +19,7 @@ SkImageShader::SkImageShader(const SkImage* img, TileMode tmx, TileMode tmy, con |
, fTileModeY(tmy) |
{} |
-SkFlattenable* SkImageShader::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkImageShader::CreateProc(SkReadBuffer& buffer) { |
const TileMode tx = (TileMode)buffer.readUInt(); |
const TileMode ty = (TileMode)buffer.readUInt(); |
SkMatrix matrix; |
@@ -28,7 +28,7 @@ SkFlattenable* SkImageShader::CreateProc(SkReadBuffer& buffer) { |
if (!img) { |
return nullptr; |
} |
- return SkImageShader::Make(img, tx, ty, &matrix).release(); |
+ return SkImageShader::Make(img, tx, ty, &matrix); |
} |
void SkImageShader::flatten(SkWriteBuffer& buffer) const { |