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

Unified Diff: gm/grayscalejpg.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/filterfastbounds.cpp ('k') | gm/image.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/grayscalejpg.cpp
diff --git a/gm/grayscalejpg.cpp b/gm/grayscalejpg.cpp
index 70ea72e9bd3b94c42a8e4368ad1cdec73379b2b6..bc88ee13a6c838ac554b10f588c4b5769063bbd2 100644
--- a/gm/grayscalejpg.cpp
+++ b/gm/grayscalejpg.cpp
@@ -15,7 +15,7 @@
*/
DEF_SIMPLE_GM(grayscalejpg, canvas, 128, 128) {
const char kResource[] = "grayscale.jpg";
- SkAutoTUnref<SkImage> image(GetResourceAsImage(kResource));
+ sk_sp<SkImage> image(GetResourceAsImage(kResource));
if (image) {
canvas->drawImage(image, 0.0f, 0.0f);
} else {
« no previous file with comments | « gm/filterfastbounds.cpp ('k') | gm/image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698