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

Unified Diff: gm/circles.cpp

Issue 1821533002: guard rasterizer and drawlooper setters (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update android sdk 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 | « gm/blurroundrect.cpp ('k') | gm/drawlooper.cpp » ('j') | gm/rects.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/circles.cpp
diff --git a/gm/circles.cpp b/gm/circles.cpp
index 4d3e33daee5aab875b025394984668ba33b923de..3ba7ae81f63385e213e27cbcb1cfe626cf1d5347 100644
--- a/gm/circles.cpp
+++ b/gm/circles.cpp
@@ -76,14 +76,13 @@ protected:
// AA with blur
SkPaint p;
p.setAntiAlias(true);
- SkDrawLooper* shadowLooper =
- SkBlurDrawLooper::Create(SK_ColorBLUE,
+ auto shadowLooper =
+ SkBlurDrawLooper::Make(SK_ColorBLUE,
SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)),
SkIntToScalar(5), SkIntToScalar(10),
SkBlurDrawLooper::kIgnoreTransform_BlurFlag |
SkBlurDrawLooper::kOverrideColor_BlurFlag |
SkBlurDrawLooper::kHighQuality_BlurFlag);
- SkAutoUnref aurL0(shadowLooper);
p.setLooper(shadowLooper);
f(malita) 2016/03/21 13:53:43 nit: looks like we can std::move here.
reed1 2016/03/21 17:15:23 Done.
fPaints.push_back(p);
}
« no previous file with comments | « gm/blurroundrect.cpp ('k') | gm/drawlooper.cpp » ('j') | gm/rects.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698