| Index: gm/drawbitmaprect.cpp
|
| diff --git a/gm/drawbitmaprect.cpp b/gm/drawbitmaprect.cpp
|
| index c88006312ac5ad6d66ba1298926c304bec24ea30..31cba51e798ac443ea681d410b2c1d2eed39f7d5 100644
|
| --- a/gm/drawbitmaprect.cpp
|
| +++ b/gm/drawbitmaprect.cpp
|
| @@ -16,8 +16,7 @@ namespace skiagm {
|
|
|
| static SkBitmap make_chessbm(int w, int h) {
|
| SkBitmap bm;
|
| - bm.setConfig(SkBitmap::kARGB_8888_Config , w, h);
|
| - bm.allocPixels();
|
| + bm.allocN32Pixels(w, h);
|
|
|
| for (int y = 0; y < bm.height(); y++) {
|
| uint32_t* p = bm.getAddr32(0, y);
|
| @@ -30,8 +29,7 @@ static SkBitmap make_chessbm(int w, int 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);
|
|
|