Index: tests/ImageFilterTest.cpp |
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp |
index cd900e3df1bdfe8a45a7a2a4526df6cf2e1d979e..9d2039687d325397256f32ba3b0b10173dcf5481 100644 |
--- a/tests/ImageFilterTest.cpp |
+++ b/tests/ImageFilterTest.cpp |
@@ -138,17 +138,17 @@ |
SkPaint paint; |
paint.setShader(shader); |
- sk_sp<SkImageFilter> paintFilter(SkPaintImageFilter::Make(paint)); |
+ SkAutoTUnref<SkImageFilter> paintFilter(SkPaintImageFilter::Create(paint)); |
sk_sp<SkShader> greenColorShader(SkShader::MakeColorShader(SK_ColorGREEN)); |
SkPaint greenColorShaderPaint; |
greenColorShaderPaint.setShader(greenColorShader); |
SkImageFilter::CropRect leftSideCropRect(SkRect::MakeXYWH(0, 0, 32, 64)); |
- sk_sp<SkImageFilter> paintFilterLeft(SkPaintImageFilter::Make(greenColorShaderPaint, |
- &leftSideCropRect)); |
+ SkAutoTUnref<SkImageFilter> paintFilterLeft(SkPaintImageFilter::Create( |
+ greenColorShaderPaint, &leftSideCropRect)); |
SkImageFilter::CropRect rightSideCropRect(SkRect::MakeXYWH(32, 0, 32, 64)); |
- sk_sp<SkImageFilter> paintFilterRight(SkPaintImageFilter::Make(greenColorShaderPaint, |
- &rightSideCropRect)); |
+ SkAutoTUnref<SkImageFilter> paintFilterRight(SkPaintImageFilter::Create( |
+ greenColorShaderPaint, &rightSideCropRect)); |
this->addFilter("color filter", |
SkColorFilterImageFilter::Create(cf.get(), input, cropRect)); |
@@ -172,8 +172,7 @@ |
this->addFilter("merge", SkMergeImageFilter::Create(input, input, SkXfermode::kSrcOver_Mode, |
cropRect)); |
this->addFilter("merge with disjoint inputs", SkMergeImageFilter::Create( |
- paintFilterLeft.get(), paintFilterRight.get(), |
- SkXfermode::kSrcOver_Mode, cropRect)); |
+ paintFilterLeft, paintFilterRight, SkXfermode::kSrcOver_Mode, cropRect)); |
this->addFilter("offset", |
SkOffsetImageFilter::Create(SK_Scalar1, SK_Scalar1, input, cropRect)); |
this->addFilter("dilate", SkDilateImageFilter::Create(3, 2, input, cropRect)); |