Index: src/core/SkLocalMatrixShader.cpp |
diff --git a/src/core/SkLocalMatrixShader.cpp b/src/core/SkLocalMatrixShader.cpp |
index ddd6114ca870c95c6e9095bf5428c314c6d38134..ea4db5352c3f7708baef81d5a767e8c0ca126232 100644 |
--- a/src/core/SkLocalMatrixShader.cpp |
+++ b/src/core/SkLocalMatrixShader.cpp |
@@ -7,14 +7,14 @@ |
#include "SkLocalMatrixShader.h" |
-SkFlattenable* SkLocalMatrixShader::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkLocalMatrixShader::CreateProc(SkReadBuffer& buffer) { |
SkMatrix lm; |
buffer.readMatrix(&lm); |
auto baseShader(buffer.readShader()); |
if (!baseShader) { |
return nullptr; |
} |
- return baseShader->makeWithLocalMatrix(lm).release(); |
+ return baseShader->makeWithLocalMatrix(lm); |
} |
void SkLocalMatrixShader::flatten(SkWriteBuffer& buffer) const { |