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

Unified Diff: gm/bigblurs.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 | « bench/RectoriBench.cpp ('k') | gm/bleed.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bigblurs.cpp
diff --git a/gm/bigblurs.cpp b/gm/bigblurs.cpp
index d68b2ca1f7d3f8b0ffd4a6ae3b7350cf88e49b90..5c09ab94ef6431ed247049d4b5c6971c3d43fd8d 100644
--- a/gm/bigblurs.cpp
+++ b/gm/bigblurs.cpp
@@ -70,8 +70,7 @@ protected:
for (int i = 0; i < 2; ++i) {
for (int j = 0; j <= kLastEnum_SkBlurStyle; ++j) {
- SkMaskFilter* mf = SkBlurMaskFilter::Create((SkBlurStyle)j, kSigma);
- blurPaint.setMaskFilter(mf)->unref();
+ blurPaint.setMaskFilter(SkBlurMaskFilter::Make((SkBlurStyle)j, kSigma));
for (int k = 0; k < (int)SK_ARRAY_COUNT(origins); ++k) {
canvas->save();
« no previous file with comments | « bench/RectoriBench.cpp ('k') | gm/bleed.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698