Index: gm/modecolorfilters.cpp |
diff --git a/gm/modecolorfilters.cpp b/gm/modecolorfilters.cpp |
index 9859faa0a7009b8846982eee26519b7b46b3636c..9ac8ddd812eff34f3c9709d534017fee45bdedbb 100644 |
--- a/gm/modecolorfilters.cpp |
+++ b/gm/modecolorfilters.cpp |
@@ -38,8 +38,7 @@ static SkShader* make_trans_black_shader() { |
// draws a background behind each test rect to see transparency |
static SkShader* make_bg_shader(int checkSize) { |
SkBitmap bmp; |
- bmp.setConfig(SkBitmap::kARGB_8888_Config, 2 * checkSize, 2 * checkSize); |
- bmp.allocPixels(); |
+ bmp.allocN32Pixels(2 * checkSize, 2 * checkSize); |
SkCanvas canvas(bmp); |
canvas.clear(0xFF800000); |
SkPaint paint; |