Index: gm/shadertext.cpp |
diff --git a/gm/shadertext.cpp b/gm/shadertext.cpp |
index 412516b914a16ae47a62dc98abbcdaf951f4ce7d..eccd8cbe12509c423ffa40ff36a1d3795039a4a5 100644 |
--- a/gm/shadertext.cpp |
+++ b/gm/shadertext.cpp |
@@ -13,8 +13,7 @@ |
namespace skiagm { |
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); |