Index: gm/gmmain.cpp |
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp |
index 5c91204dfdc484bcc18a4924263d9fd2e7f3594a..4833975aef412401b028bef4bfcc6c408ec90a63 100644 |
--- a/gm/gmmain.cpp |
+++ b/gm/gmmain.cpp |
@@ -561,8 +561,7 @@ public: |
bool deferred) { |
SkISize size (gm->getISize()); |
setup_bitmap(gRec, size, bitmap); |
- SkImageInfo info; |
- bitmap->asImageInfo(&info); |
+ const SkImageInfo info = bitmap->info(); |
SkAutoTUnref<SkSurface> surface; |
SkAutoTUnref<SkCanvas> canvas; |