Index: src/core/SkColorFilterShader.cpp |
diff --git a/src/core/SkColorFilterShader.cpp b/src/core/SkColorFilterShader.cpp |
index 8a175024def79963a4da350025f7209c7141a66f..500ead4f743119035413195b71fac11435d65c16 100644 |
--- a/src/core/SkColorFilterShader.cpp |
+++ b/src/core/SkColorFilterShader.cpp |
@@ -23,13 +23,13 @@ SkColorFilterShader::SkColorFilterShader(sk_sp<SkShader> shader, sk_sp<SkColorFi |
SkASSERT(fFilter); |
} |
-SkFlattenable* SkColorFilterShader::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkColorFilterShader::CreateProc(SkReadBuffer& buffer) { |
auto shader = buffer.readShader(); |
auto filter = buffer.readColorFilter(); |
if (!shader || !filter) { |
return nullptr; |
} |
- return new SkColorFilterShader(shader, filter); |
+ return sk_make_sp<SkColorFilterShader>(shader, filter); |
} |
void SkColorFilterShader::flatten(SkWriteBuffer& buffer) const { |