Index: samplecode/SampleDash.cpp |
diff --git a/samplecode/SampleDash.cpp b/samplecode/SampleDash.cpp |
index 20e28969c8044652379dd7eea327db2e05474ced..26d36942dfadced7b2aa952e8b35f2b66039f8d9 100644 |
--- a/samplecode/SampleDash.cpp |
+++ b/samplecode/SampleDash.cpp |
@@ -17,8 +17,7 @@ static void setBitmapDash(SkPaint* paint, int width) { |
SkColor c = paint->getColor(); |
SkBitmap bm; |
- bm.setConfig(SkBitmap::kARGB_8888_Config, 2, 1); |
- bm.allocPixels(); |
+ bm.allocN32Pixels(2, 1); |
bm.lockPixels(); |
*bm.getAddr32(0, 0) = SkPreMultiplyARGB(0xFF, SkColorGetR(c), |
SkColorGetG(c), SkColorGetB(c)); |