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

Unified Diff: gm/bleed.cpp

Issue 1852113003: switch maskfilters to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « gm/bigblurs.cpp ('k') | gm/blurcircles.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bleed.cpp
diff --git a/gm/bleed.cpp b/gm/bleed.cpp
index bd1a282227101b03f564bfe55fd02d67c40233d9..5a27b3972ef257f61209f3e48d31614243086e71 100644
--- a/gm/bleed.cpp
+++ b/gm/bleed.cpp
@@ -410,9 +410,8 @@ protected:
SkPaint paint;
paint.setFilterQuality(filter);
- SkMaskFilter* mf = SkBlurMaskFilter::Create(kNormal_SkBlurStyle,
- SkBlurMask::ConvertRadiusToSigma(3));
- paint.setMaskFilter(mf)->unref();
+ paint.setMaskFilter(SkBlurMaskFilter::Make(kNormal_SkBlurStyle,
+ SkBlurMask::ConvertRadiusToSigma(3)));
paint.setShader(fShader);
paint.setColor(SK_ColorBLUE);
paint.setAntiAlias(aa);
@@ -429,9 +428,8 @@ protected:
SkPaint paint;
paint.setFilterQuality(filter);
- SkMaskFilter* mf = SkBlurMaskFilter::Create(kOuter_SkBlurStyle,
- SkBlurMask::ConvertRadiusToSigma(7));
- paint.setMaskFilter(mf)->unref();
+ paint.setMaskFilter(SkBlurMaskFilter::Make(kOuter_SkBlurStyle,
+ SkBlurMask::ConvertRadiusToSigma(7)));
paint.setShader(fShader);
paint.setColor(SK_ColorBLUE);
paint.setAntiAlias(aa);
« no previous file with comments | « gm/bigblurs.cpp ('k') | gm/blurcircles.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698