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

Unified Diff: gm/blurcircles.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/bleed.cpp ('k') | gm/blurquickreject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/blurcircles.cpp
diff --git a/gm/blurcircles.cpp b/gm/blurcircles.cpp
index 74490ce4240613ac967eafd2a8b386d21c93324d..b15901b6a026bbdf43d27d0fe98d30890dcdd297 100644
--- a/gm/blurcircles.cpp
+++ b/gm/blurcircles.cpp
@@ -31,10 +31,10 @@ protected:
const float blurRadii[kNumBlurs] = { 1,5,10,20 };
for (int i = 0; i < kNumBlurs; ++i) {
- fBlurFilters[i].reset(SkBlurMaskFilter::Create(
+ fBlurFilters[i] = SkBlurMaskFilter::Make(
kNormal_SkBlurStyle,
SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(blurRadii[i])),
- SkBlurMaskFilter::kHighQuality_BlurFlag));
+ SkBlurMaskFilter::kHighQuality_BlurFlag);
}
}
@@ -60,7 +60,7 @@ protected:
private:
static const int kNumBlurs = 4;
- SkAutoTUnref<SkMaskFilter> fBlurFilters[kNumBlurs];
+ sk_sp<SkMaskFilter> fBlurFilters[kNumBlurs];
typedef skiagm::GM INHERITED;
};
« no previous file with comments | « gm/bleed.cpp ('k') | gm/blurquickreject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698