Index: samplecode/SampleAARects.cpp |
diff --git a/samplecode/SampleAARects.cpp b/samplecode/SampleAARects.cpp |
index e84c9664a0eee6a1c47e148608580b921aa125c5..f552df6f1586c4ac580ea6d2fe97926c185b3f80 100644 |
--- a/samplecode/SampleAARects.cpp |
+++ b/samplecode/SampleAARects.cpp |
@@ -14,8 +14,7 @@ |
static SkBitmap createBitmap(int n) { |
SkBitmap bitmap; |
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, n, n); |
- bitmap.allocPixels(); |
+ bitmap.allocN32Pixels(n, n); |
bitmap.eraseColor(SK_ColorGREEN); |
SkCanvas canvas(bitmap); |