Index: gm/tilemodes.cpp |
diff --git a/gm/tilemodes.cpp b/gm/tilemodes.cpp |
index dcfc133d3709ca2aef3c38981788d73b72eb142f..0b0a3ae6df33d070eb9417405120d991f4485287 100644 |
--- a/gm/tilemodes.cpp |
+++ b/gm/tilemodes.cpp |
@@ -20,8 +20,7 @@ |
#include "SkBlurDrawLooper.h" |
static void makebm(SkBitmap* bm, SkBitmap::Config config, int w, int h) { |
- bm->setConfig(config, w, h); |
- bm->allocPixels(); |
+ bm->allocConfigPixels(config, w, h); |
bm->eraseColor(SK_ColorTRANSPARENT); |
SkCanvas canvas(*bm); |