Index: tests/ImageFilterTest.cpp |
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp |
index dda899b4f3d7f6d5cbb6e20a7de268e737ed81c8..3f60286e39d6da3b3369bbc22f21c65fa407030b 100644 |
--- a/tests/ImageFilterTest.cpp |
+++ b/tests/ImageFilterTest.cpp |
@@ -219,12 +219,12 @@ private: |
} |
-SkFlattenable* MatrixTestImageFilter::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> MatrixTestImageFilter::CreateProc(SkReadBuffer& buffer) { |
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1); |
skiatest::Reporter* reporter = (skiatest::Reporter*)buffer.readFunctionPtr(); |
SkMatrix matrix; |
buffer.readMatrix(&matrix); |
- return new MatrixTestImageFilter(reporter, matrix); |
+ return sk_make_sp<MatrixTestImageFilter>(reporter, matrix); |
} |
#ifndef SK_IGNORE_TO_STRING |