| Index: gm/ninepatchstretch.cpp
|
| diff --git a/gm/ninepatchstretch.cpp b/gm/ninepatchstretch.cpp
|
| index 94b2d59f281c800a50d90a3283d8be834fc2e28f..a14af00a4e99b7ccf93c71b2ca5d7503ee8f5c99 100644
|
| --- a/gm/ninepatchstretch.cpp
|
| +++ b/gm/ninepatchstretch.cpp
|
| @@ -12,8 +12,7 @@ static void make_bitmap(SkBitmap* bitmap, SkIRect* center) {
|
| const int kStretchy = 8;
|
| const int kSize = 2*kFixed + kStretchy;
|
|
|
| - bitmap->setConfig(SkBitmap::kARGB_8888_Config, kSize, kSize);
|
| - bitmap->allocPixels();
|
| + bitmap->allocN32Pixels(kSize, kSize);
|
| SkBaseDevice* dev = new SkBitmapDevice(*bitmap);
|
|
|
| SkCanvas canvas(dev);
|
|
|