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

Unified Diff: gm/repeated_bitmap.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/rectangletexture.cpp ('k') | gm/resizeimagefilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/repeated_bitmap.cpp
diff --git a/gm/repeated_bitmap.cpp b/gm/repeated_bitmap.cpp
index 39eeb4e6e962055f22ca9f73c2256da5aab72507..a659e784f77010aa7b428d80d55478567426b1f9 100644
--- a/gm/repeated_bitmap.cpp
+++ b/gm/repeated_bitmap.cpp
@@ -35,11 +35,9 @@ static void draw_rotated_image(SkCanvas* canvas, const SkImage* image) {
}
DEF_SIMPLE_GM(repeated_bitmap, canvas, 576, 576) {
- SkAutoTUnref<SkImage> image(GetResourceAsImage("randPixels.png"));
- draw_rotated_image(canvas, image);
+ draw_rotated_image(canvas, GetResourceAsImage("randPixels.png").get());
}
DEF_SIMPLE_GM(repeated_bitmap_jpg, canvas, 576, 576) {
- SkAutoTUnref<SkImage> image(GetResourceAsImage("color_wheel.jpg"));
- draw_rotated_image(canvas, image);
+ draw_rotated_image(canvas, GetResourceAsImage("color_wheel.jpg").get());
}
« no previous file with comments | « gm/rectangletexture.cpp ('k') | gm/resizeimagefilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698