Index: gm/bitmapsource.cpp |
diff --git a/gm/bitmapsource.cpp b/gm/bitmapsource.cpp |
index d6e98a5bbd423a366fa13ab4e5ac522228c5909d..6d575eb72e437b4edfb72215ead1191e71ff41c4 100644 |
--- a/gm/bitmapsource.cpp |
+++ b/gm/bitmapsource.cpp |
@@ -22,8 +22,7 @@ protected: |
} |
void makeBitmap() { |
- fBitmap.setConfig(SkBitmap::kARGB_8888_Config, 100, 100); |
- fBitmap.allocPixels(); |
+ fBitmap.allocN32Pixels(100, 100); |
SkBitmapDevice device(fBitmap); |
SkCanvas canvas(&device); |
canvas.clear(0x00000000); |