Index: gm/verylargebitmap.cpp |
diff --git a/gm/verylargebitmap.cpp b/gm/verylargebitmap.cpp |
index e6d81cdaa791397ee4173c22e77ccfd1dbd93c81..e0a46181307921403e7c594d91a42804b30b2e4c 100644 |
--- a/gm/verylargebitmap.cpp |
+++ b/gm/verylargebitmap.cpp |
@@ -11,8 +11,7 @@ |
#include "SkPath.h" |
static void make_bm(SkBitmap* bm, int width, int height, SkColor colors[2]) { |
- bm->setConfig(SkBitmap::kARGB_8888_Config, width, height); |
- bm->allocPixels(); |
+ bm->allocN32Pixels(width, height); |
SkCanvas canvas(*bm); |
SkPoint center = {SkIntToScalar(width)/2, SkIntToScalar(height)/2}; |
SkScalar radius = 40; |