Index: gm/gmmain.cpp |
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp |
index 86d96fe2885d76339b315a90403dddeac8d6c651..e7f23655da88be898b2aeab8c64c0b4543180e85 100644 |
--- a/gm/gmmain.cpp |
+++ b/gm/gmmain.cpp |
@@ -475,8 +475,7 @@ public: |
*/ |
static void setup_bitmap(const ConfigData& gRec, SkISize& size, |
SkBitmap* bitmap) { |
- bitmap->setConfig(gRec.fConfig, size.width(), size.height()); |
- bitmap->allocPixels(); |
+ bitmap->allocConfigPixels(gRec.fConfig, size.width(), size.height()); |
bitmap->eraseColor(SK_ColorTRANSPARENT); |
} |