Index: dm/DMUtil.cpp |
diff --git a/dm/DMUtil.cpp b/dm/DMUtil.cpp |
index 52efda3d32f5ed3889e1a6cc8e61e8b21611dd97..849d1bf9d8acb2613585f0fc33d086dc9f854008 100644 |
--- a/dm/DMUtil.cpp |
+++ b/dm/DMUtil.cpp |
@@ -19,10 +19,10 @@ void RecordPicture(skiagm::GM* gm, SkPicture* picture, uint32_t recordFlags) { |
picture->endRecording(); |
} |
-void SetupBitmap(const SkBitmap::Config config, skiagm::GM* gm, SkBitmap* bitmap) { |
+void SetupBitmap(const SkColorType ct, skiagm::GM* gm, SkBitmap* bitmap) { |
const SkISize size = gm->getISize(); |
- bitmap->setConfig(config, size.width(), size.height()); |
- bitmap->allocPixels(); |
+ bitmap->allocPixels(SkImageInfo::Make(size.width(), size.height(), |
+ ct, kPremul_SkAlphaType)); |
bitmap->eraseColor(0x00000000); |
} |