Index: gm/aarectmodes.cpp |
diff --git a/gm/aarectmodes.cpp b/gm/aarectmodes.cpp |
index 704ddcbb6d355e6e569572fda814f1dac41d2a1f..a614761e69bfcf68cde965f2440ae39ed2d271b9 100644 |
--- a/gm/aarectmodes.cpp |
+++ b/gm/aarectmodes.cpp |
@@ -108,8 +108,7 @@ static SkScalar drawCell(SkCanvas* canvas, SkXfermode* mode, |
static SkShader* make_bg_shader() { |
SkBitmap bm; |
- bm.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); |
- bm.allocPixels(); |
+ bm.allocN32Pixels(2, 2); |
*bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; |
*bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCC, |
0xCC, 0xCC); |