Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(872)

Unified Diff: tests/PaintImageFilterTest.cpp

Issue 1842793002: Switch SkLocalMatrixImageFilter and SkPaintImageFilter over to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Ooops Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/ImageFilterTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PaintImageFilterTest.cpp
diff --git a/tests/PaintImageFilterTest.cpp b/tests/PaintImageFilterTest.cpp
index f1c0c2eb9739bd563273e15da4c0c4ff19f60a5a..03653368abc568cd8fa4c014c255e5acd8b1fb38 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);
}
« no previous file with comments | « tests/ImageFilterTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698