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()); |
} |