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

Unified Diff: gm/bigtileimagefilter.cpp

Issue 1882113002: Update TileImageFilter to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT 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 | « fuzz/FilterFuzz.cpp ('k') | gm/filterfastbounds.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bigtileimagefilter.cpp
diff --git a/gm/bigtileimagefilter.cpp b/gm/bigtileimagefilter.cpp
index 5c12f94ea01d2c447deb4ca2d021f7f867329864..b74f62ce61d684ec24df0dc0f02845472a50f6ad 100644
--- a/gm/bigtileimagefilter.cpp
+++ b/gm/bigtileimagefilter.cpp
@@ -57,10 +57,10 @@ protected:
const SkRect bound = SkRect::MakeIWH(kWidth, kHeight);
sk_sp<SkImageFilter> imageSource(SkImageSource::Make(fRedImage));
- sk_sp<SkImageFilter> tif(SkTileImageFilter::Create(
+ sk_sp<SkImageFilter> tif(SkTileImageFilter::Make(
SkRect::MakeIWH(kBitmapSize, kBitmapSize),
SkRect::MakeIWH(kWidth, kHeight),
- imageSource.get()));
+ std::move(imageSource)));
p.setImageFilter(std::move(tif));
@@ -73,7 +73,7 @@ protected:
const SkRect bound2 = SkRect::MakeIWH(kBitmapSize, kBitmapSize);
- sk_sp<SkImageFilter> tif(SkTileImageFilter::Create(
+ sk_sp<SkImageFilter> tif(SkTileImageFilter::Make(
SkRect::MakeIWH(kBitmapSize, kBitmapSize),
SkRect::MakeIWH(kBitmapSize, kBitmapSize),
nullptr));
« no previous file with comments | « fuzz/FilterFuzz.cpp ('k') | gm/filterfastbounds.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698