Index: samplecode/SampleRepeatTile.cpp |
diff --git a/samplecode/SampleRepeatTile.cpp b/samplecode/SampleRepeatTile.cpp |
index 988345c0fc947ed09b78a0c9d06232e4364aeadf..b352894329584f84d13392655f3d60785b4b47fe 100644 |
--- a/samplecode/SampleRepeatTile.cpp |
+++ b/samplecode/SampleRepeatTile.cpp |
@@ -14,8 +14,7 @@ |
static void make_bitmap(SkBitmap* bm) { |
const int W = 100; |
const int H = 100; |
- bm->setConfig(SkBitmap::kARGB_8888_Config, W, H); |
- bm->allocPixels(); |
+ bm->allocN32Pixels(W, H); |
SkPaint paint; |
SkCanvas canvas(*bm); |