Index: dm/DMUtil.h |
diff --git a/dm/DMUtil.h b/dm/DMUtil.h |
index c2083ba0cb9c4b0b0c691c2211c07f951a22e301..535d9f26db055667d23b503448b5947c47071404 100644 |
--- a/dm/DMUtil.h |
+++ b/dm/DMUtil.h |
@@ -20,11 +20,10 @@ SkPicture* RecordPicture(skiagm::GM* gm, |
uint32_t recordFlags = 0, |
SkBBHFactory* factory = NULL); |
-// Prepare bitmap to have gm, bench or picture draw into it with this config. |
-// TODO(mtklein): make SkBenchmark::getSize()/GM::getISize() const. |
-void SetupBitmap(SkColorType, skiagm::GM* gm, SkBitmap* bitmap); |
-void SetupBitmap(SkColorType, SkBenchmark* bench, SkBitmap* bitmap); |
-void SetupBitmap(SkColorType, const SkPicture& picture, SkBitmap* bitmap); |
+// Allocate an empty bitmap with this size and depth. |
+void AllocatePixels(SkColorType, int w, int h, SkBitmap* bitmap); |
+// Allocate an empty bitmap the same size and depth as reference. |
+void AllocatePixels(const SkBitmap& reference, SkBitmap* bitmap); |
// Draw picture to bitmap. |
void DrawPicture(SkPicture* picture, SkBitmap* bitmap); |