| Index: gm/bitmappremul.cpp
|
| diff --git a/gm/bitmappremul.cpp b/gm/bitmappremul.cpp
|
| index 8b4c2d6edaf83d8e48632a42d87577d05df6f141..57d22d700a7c83b2415cca2c858ac83732b82ede 100644
|
| --- a/gm/bitmappremul.cpp
|
| +++ b/gm/bitmappremul.cpp
|
| @@ -23,8 +23,7 @@ static const int PIXEL_SIZE_8888 = SLIDE_SIZE / 256;
|
| static const int PIXEL_SIZE_4444 = SLIDE_SIZE / 16;
|
|
|
| static void init_bitmap(SkBitmap::Config config, SkBitmap* bitmap) {
|
| - bitmap->setConfig(config, SLIDE_SIZE, SLIDE_SIZE);
|
| - bitmap->allocPixels();
|
| + bitmap->allocConfigPixels(config, SLIDE_SIZE, SLIDE_SIZE);
|
| bitmap->eraseColor(SK_ColorWHITE);
|
| }
|
|
|
|
|