| Index: gm/colormatrix.cpp
|
| diff --git a/gm/colormatrix.cpp b/gm/colormatrix.cpp
|
| index 2f98693da22452858f613a1877567d6a17211bab..e0dcfaf72ef74d20d7e6b23628f97211bf66371c 100644
|
| --- a/gm/colormatrix.cpp
|
| +++ b/gm/colormatrix.cpp
|
| @@ -63,8 +63,7 @@ protected:
|
|
|
| SkBitmap createSolidBitmap(int width, int height) {
|
| SkBitmap bm;
|
| - bm.setConfig(SkBitmap::kARGB_8888_Config, width, height);
|
| - bm.allocPixels();
|
| + bm.allocN32Pixels(width, height);
|
| SkCanvas canvas(bm);
|
| canvas.clear(0x0);
|
| for (int y = 0; y < height; ++y) {
|
| @@ -81,8 +80,7 @@ protected:
|
| // creates a bitmap with shades of transparent gray.
|
| SkBitmap createTransparentBitmap(int width, int height) {
|
| SkBitmap bm;
|
| - bm.setConfig(SkBitmap::kARGB_8888_Config, width, height);
|
| - bm.allocPixels();
|
| + bm.allocN32Pixels(width, height);
|
| SkCanvas canvas(bm);
|
| canvas.clear(0x0);
|
|
|
|
|