Index: tests/PictureTest.cpp |
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp |
index a57a1b2fb28b04e317e391ef219f3514ea2f5732..f6ed59e81a9af0e82a2491a7c4e8cfc8918e2954 100644 |
--- a/tests/PictureTest.cpp |
+++ b/tests/PictureTest.cpp |
@@ -278,11 +278,11 @@ static void test_savelayer_extraction(skiatest::Reporter* reporter) { |
// optimize away |
SkScalar blueToRedMatrix[20] = { 0 }; |
blueToRedMatrix[2] = blueToRedMatrix[18] = SK_Scalar1; |
- auto blueToRed(SkColorFilter::MakeMatrixFilterRowMajor255(blueToRedMatrix)); |
- SkAutoTUnref<SkImageFilter> filter(SkColorFilterImageFilter::Create(blueToRed.get())); |
+ sk_sp<SkColorFilter> blueToRed(SkColorFilter::MakeMatrixFilterRowMajor255(blueToRedMatrix)); |
+ sk_sp<SkImageFilter> filter(SkColorFilterImageFilter::Make(std::move(blueToRed), nullptr)); |
SkPaint complexPaint; |
- complexPaint.setImageFilter(filter); |
+ complexPaint.setImageFilter(std::move(filter)); |
sk_sp<SkPicture> pict, child; |
SkRTreeFactory bbhFactory; |