Index: samplecode/SampleMipMap.cpp |
diff --git a/samplecode/SampleMipMap.cpp b/samplecode/SampleMipMap.cpp |
index 3cfeeb704ecec46a502c9a9a70850c6b24efcb12..a9804ac5e41a6db55fbbe196d9f3cc03ec42d720 100644 |
--- a/samplecode/SampleMipMap.cpp |
+++ b/samplecode/SampleMipMap.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_ColorTRANSPARENT); |
SkCanvas canvas(bitmap); |