Index: samplecode/SampleRotateCircles.cpp |
diff --git a/samplecode/SampleRotateCircles.cpp b/samplecode/SampleRotateCircles.cpp |
index 537f42485b1618b524aa0313eaaa877dd863a3c4..f9b32ea4170ef7161045baff4485b65c4918f486 100644 |
--- a/samplecode/SampleRotateCircles.cpp |
+++ b/samplecode/SampleRotateCircles.cpp |
@@ -108,8 +108,7 @@ protected: |
int h = w; |
SkBitmap bm; |
- bm.setConfig(SkBitmap::kARGB_8888_Config, w, h); |
- bm.allocPixels(); |
+ bm.allocN32Pixels(w, h); |
bm.eraseColor(0); |
SkAutoLockPixels alp(bm); |