Index: src/core/SkColorMatrixFilterRowMajor255.cpp |
diff --git a/src/core/SkColorMatrixFilterRowMajor255.cpp b/src/core/SkColorMatrixFilterRowMajor255.cpp |
index bd9a66a561a50f4744f07480c23d200658a4efc9..c158a7948fec040847f47d635f155ec988d7a4b0 100644 |
--- a/src/core/SkColorMatrixFilterRowMajor255.cpp |
+++ b/src/core/SkColorMatrixFilterRowMajor255.cpp |
@@ -157,10 +157,10 @@ void SkColorMatrixFilterRowMajor255::flatten(SkWriteBuffer& buffer) const { |
buffer.writeScalarArray(fMatrix, 20); |
} |
-SkFlattenable* SkColorMatrixFilterRowMajor255::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkColorMatrixFilterRowMajor255::CreateProc(SkReadBuffer& buffer) { |
SkScalar matrix[20]; |
if (buffer.readScalarArray(matrix, 20)) { |
- return new SkColorMatrixFilterRowMajor255(matrix); |
+ return sk_make_sp<SkColorMatrixFilterRowMajor255>(matrix); |
} |
return nullptr; |
} |