Index: gm/aaclip.cpp |
diff --git a/gm/aaclip.cpp b/gm/aaclip.cpp |
index f57e57c400775a0b6796c1ee169475d7171f2987..ec29a4f896f324a87d3f8d7e9b825d6210b17885 100644 |
--- a/gm/aaclip.cpp |
+++ b/gm/aaclip.cpp |
@@ -124,8 +124,7 @@ static void test_grad(SkCanvas* canvas) { |
static SkCanvas* MakeCanvas(const SkIRect& bounds) { |
SkBitmap bm; |
- bm.setConfig(SkBitmap::kARGB_8888_Config, bounds.width(), bounds.height()); |
- bm.allocPixels(); |
+ bm.allocN32Pixels(bounds.width(), bounds.height()); |
bm.eraseColor(SK_ColorTRANSPARENT); |
SkCanvas* canvas = new SkCanvas(bm); |