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

Unified Diff: gm/imagefilterscropped.cpp

Issue 1852743002: Update SkBlurImageFilter to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT & address code review comments 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/imagefilterscropexpand.cpp ('k') | gm/imagefiltersgraph.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/imagefilterscropped.cpp
diff --git a/gm/imagefilterscropped.cpp b/gm/imagefilterscropped.cpp
index 9c8705cfae816390bebd21f37f90afe8a61cb31d..1e880fe68a96e67c93ce1d54448a96676833b62c 100644
--- a/gm/imagefilterscropped.cpp
+++ b/gm/imagefilterscropped.cpp
@@ -131,18 +131,18 @@ protected:
SkImageFilter* filters[] = {
nullptr,
SkColorFilterImageFilter::Create(cf.get(), nullptr, &cropRect),
- SkBlurImageFilter::Create(0.0f, 0.0f, nullptr, &cropRect),
- SkBlurImageFilter::Create(1.0f, 1.0f, nullptr, &cropRect),
- SkBlurImageFilter::Create(8.0f, 0.0f, nullptr, &cropRect),
- SkBlurImageFilter::Create(0.0f, 8.0f, nullptr, &cropRect),
- SkBlurImageFilter::Create(8.0f, 8.0f, nullptr, &cropRect),
+ SkBlurImageFilter::Make(0.0f, 0.0f, nullptr, &cropRect).release(),
+ SkBlurImageFilter::Make(1.0f, 1.0f, nullptr, &cropRect).release(),
+ SkBlurImageFilter::Make(8.0f, 0.0f, nullptr, &cropRect).release(),
+ SkBlurImageFilter::Make(0.0f, 8.0f, nullptr, &cropRect).release(),
+ SkBlurImageFilter::Make(8.0f, 8.0f, nullptr, &cropRect).release(),
SkErodeImageFilter::Create(1, 1, nullptr, &cropRect),
SkErodeImageFilter::Create(8, 0, erodeY, &cropRect),
SkErodeImageFilter::Create(0, 8, erodeX, &cropRect),
SkErodeImageFilter::Create(8, 8, nullptr, &cropRect),
SkMergeImageFilter::Make(nullptr, std::move(cfOffset),
SkXfermode::kSrcOver_Mode, &cropRect).release(),
- SkBlurImageFilter::Create(8.0f, 8.0f, nullptr, &bogusRect),
+ SkBlurImageFilter::Make(8.0f, 8.0f, nullptr, &bogusRect).release(),
SkColorFilterImageFilter::Create(cf.get(), nullptr, &bogusRect),
};
« no previous file with comments | « gm/imagefilterscropexpand.cpp ('k') | gm/imagefiltersgraph.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698