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

Unified Diff: bench/BlurBench.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 | « no previous file | bench/BlurRectsBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/BlurBench.cpp
diff --git a/bench/BlurBench.cpp b/bench/BlurBench.cpp
index 58f9e89ffaf9f3bb486a8771c0257c10e52a6c71..20afd4a2e571667d237c50feca7dbe32f6532c62 100644
--- a/bench/BlurBench.cpp
+++ b/bench/BlurBench.cpp
@@ -65,10 +65,9 @@ protected:
r.offset(fRadius, fRadius);
if (fRadius > 0) {
- SkMaskFilter* mf = SkBlurMaskFilter::Create(fStyle,
- SkBlurMask::ConvertRadiusToSigma(fRadius),
- fFlags);
- paint.setMaskFilter(mf)->unref();
+ paint.setMaskFilter(SkBlurMaskFilter::Make(fStyle,
+ SkBlurMask::ConvertRadiusToSigma(fRadius),
+ fFlags));
}
canvas->drawOval(r, paint);
}
« no previous file with comments | « no previous file | bench/BlurRectsBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698