Index: gm/extractbitmap.cpp |
diff --git a/gm/extractbitmap.cpp b/gm/extractbitmap.cpp |
index 520674176d4b9bf705ed2dde03823688741686c0..efc5d3531a4a9ea8e27a5ff984bc69b5832836fb 100644 |
--- a/gm/extractbitmap.cpp |
+++ b/gm/extractbitmap.cpp |
@@ -16,8 +16,7 @@ namespace skiagm { |
static void create_bitmap(SkBitmap* bitmap) { |
const int W = 100; |
const int H = 100; |
- bitmap->setConfig(SkBitmap::kARGB_8888_Config, W, H); |
- bitmap->allocPixels(); |
+ bitmap->allocN32Pixels(W, H); |
SkCanvas canvas(*bitmap); |
canvas.drawColor(SK_ColorRED); |