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

Unified Diff: gm/rects.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/megalooper.cpp ('k') | gm/samplerstress.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rects.cpp
diff --git a/gm/rects.cpp b/gm/rects.cpp
index 51eeff0bfb4bf847f901a85ece4aa337d249eeac..9ec7881f90916b0a1150aae7513d6a6c891ee92c 100644
--- a/gm/rects.cpp
+++ b/gm/rects.cpp
@@ -64,11 +64,10 @@ protected:
SkPaint p;
p.setColor(SK_ColorWHITE);
p.setAntiAlias(true);
- SkMaskFilter* mf = SkBlurMaskFilter::Create(
+ p.setMaskFilter(SkBlurMaskFilter::Make(
kNormal_SkBlurStyle,
SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)),
- SkBlurMaskFilter::kHighQuality_BlurFlag);
- p.setMaskFilter(mf)->unref();
+ SkBlurMaskFilter::kHighQuality_BlurFlag));
fPaints.push_back(p);
}
« no previous file with comments | « gm/megalooper.cpp ('k') | gm/samplerstress.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698