Chromium Code Reviews| Index: gm/shadertext2.cpp |
| diff --git a/gm/shadertext2.cpp b/gm/shadertext2.cpp |
| index a7da4368237f855d577360c55bd0cde998af7933..e8a4c6dac1b29706bb6db954b2cc65eed69d5058 100644 |
| --- a/gm/shadertext2.cpp |
| +++ b/gm/shadertext2.cpp |
| @@ -12,8 +12,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); |