Index: tests/PDFPrimitivesTest.cpp |
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp |
index 57b0b60b8726ac05ab12deb1e802785ecf1f6351..f4c29b358db6a3dde8fe34848d87f061dfec675f 100644 |
--- a/tests/PDFPrimitivesTest.cpp |
+++ b/tests/PDFPrimitivesTest.cpp |
@@ -381,10 +381,10 @@ private: |
mutable bool fVisited; |
}; |
-SkFlattenable* DummyImageFilter::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> DummyImageFilter::CreateProc(SkReadBuffer& buffer) { |
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 0); |
bool visited = buffer.readBool(); |
- return new DummyImageFilter(visited); |
+ return sk_make_sp<DummyImageFilter>(visited); |
} |
#ifndef SK_IGNORE_TO_STRING |