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

Unified Diff: gm/filterfastbounds.cpp

Issue 1810813003: update callsites for Make image factories (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: start to take advantage of sk_sp drawImage 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/etc1bitmap.cpp ('k') | gm/grayscalejpg.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/filterfastbounds.cpp
diff --git a/gm/filterfastbounds.cpp b/gm/filterfastbounds.cpp
index 453dded8cc3e0d3328121d42bf58e2a5283ea4e1..9623e4265b58234bce894275522d33863e4b410e 100644
--- a/gm/filterfastbounds.cpp
+++ b/gm/filterfastbounds.cpp
@@ -275,8 +275,8 @@ protected:
temp->drawRect(SkRect::MakeLTRB(5, 0, 10, 5), p);
}
- SkAutoTUnref<SkImage> image(surface->newImageSnapshot());
- SkAutoTUnref<SkImageFilter> imageSource(SkImageSource::Create(image));
+ sk_sp<SkImage> image(surface->makeImageSnapshot());
+ SkAutoTUnref<SkImageFilter> imageSource(SkImageSource::Create(image.get()));
SkTArray<SkPaint> bmsPaints;
create_paints(imageSource, &bmsPaints);
« no previous file with comments | « gm/etc1bitmap.cpp ('k') | gm/grayscalejpg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698