aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PaintImageFilterTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PaintImageFilterTest.cpp')
-rw-r--r--tests/PaintImageFilterTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PaintImageFilterTest.cpp b/tests/PaintImageFilterTest.cpp
index f1c0c2eb97..03653368ab 100644
--- a/tests/PaintImageFilterTest.cpp
+++ b/tests/PaintImageFilterTest.cpp
@@ -38,7 +38,7 @@ static void test_unscaled(skiatest::Reporter* reporter) {
{
SkPaint paint;
SkImageFilter::CropRect cr(r);
- paint.setImageFilter(SkPaintImageFilter::Create(gradientPaint, &cr))->unref();
+ paint.setImageFilter(SkPaintImageFilter::Make(gradientPaint, &cr));
canvasFilter.drawRect(r, paint);
}
@@ -84,7 +84,7 @@ static void test_scaled(skiatest::Reporter* reporter) {
{
SkPaint paint;
SkImageFilter::CropRect cr(r);
- paint.setImageFilter(SkPaintImageFilter::Create(gradientPaint, &cr))->unref();
+ paint.setImageFilter(SkPaintImageFilter::Make(gradientPaint, &cr));
canvasFilter.scale(SkIntToScalar(2), SkIntToScalar(2));
canvasFilter.drawRect(r, paint);
}