Index: src/core/SkComposeShader.cpp |
diff --git a/src/core/SkComposeShader.cpp b/src/core/SkComposeShader.cpp |
index f39f20c46cefa7b8fb25107a4d23babe54031696..46b7724944676a297b5745b4f658ec40dd34ca5c 100644 |
--- a/src/core/SkComposeShader.cpp |
+++ b/src/core/SkComposeShader.cpp |
@@ -39,14 +39,14 @@ private: |
}; |
#define SkAutoAlphaRestore(...) SK_REQUIRE_LOCAL_VAR(SkAutoAlphaRestore) |
-SkFlattenable* SkComposeShader::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkComposeShader::CreateProc(SkReadBuffer& buffer) { |
sk_sp<SkShader> shaderA(buffer.readShader()); |
sk_sp<SkShader> shaderB(buffer.readShader()); |
sk_sp<SkXfermode> mode(buffer.readXfermode()); |
if (!shaderA || !shaderB) { |
return nullptr; |
} |
- return new SkComposeShader(std::move(shaderA), std::move(shaderB), std::move(mode)); |
+ return sk_make_sp<SkComposeShader>(std::move(shaderA), std::move(shaderB), std::move(mode)); |
} |
void SkComposeShader::flatten(SkWriteBuffer& buffer) const { |