Index: dm/DMUtil.cpp |
diff --git a/dm/DMUtil.cpp b/dm/DMUtil.cpp |
index 9a4765abb09d15cbad420e1c280d1c17fd0f1e1b..5c7517147abc2c89911df3ac8b79655d66ad3e3a 100644 |
--- a/dm/DMUtil.cpp |
+++ b/dm/DMUtil.cpp |
@@ -26,14 +26,18 @@ static void setup_bitmap(SkColorType ct, int width, int height, SkBitmap* bitmap |
bitmap->eraseColor(0x00000000); |
} |
-void SetupBitmap(const SkColorType ct, skiagm::GM* gm, SkBitmap* bitmap) { |
+void SetupBitmap(SkColorType ct, skiagm::GM* gm, SkBitmap* bitmap) { |
setup_bitmap(ct, gm->getISize().width(), gm->getISize().height(), bitmap); |
} |
-void SetupBitmap(const SkColorType ct, SkBenchmark* bench, SkBitmap* bitmap) { |
+void SetupBitmap(SkColorType ct, SkBenchmark* bench, SkBitmap* bitmap) { |
setup_bitmap(ct, bench->getSize().x(), bench->getSize().y(), bitmap); |
} |
+void SetupBitmap(SkColorType ct, const SkPicture& pic, SkBitmap* bitmap) { |
+ setup_bitmap(ct, pic.width(), pic.height(), bitmap); |
+} |
+ |
void DrawPicture(SkPicture* picture, SkBitmap* bitmap) { |
SkASSERT(picture != NULL); |
SkASSERT(bitmap != NULL); |