Index: samplecode/SampleRegion.cpp |
diff --git a/samplecode/SampleRegion.cpp b/samplecode/SampleRegion.cpp |
index c29f0907ce896180cd25351ca2c0bc12548564bd..54858de7a13eb68a2213b4e8cc61bd1c54ffe5e1 100644 |
--- a/samplecode/SampleRegion.cpp |
+++ b/samplecode/SampleRegion.cpp |
@@ -20,8 +20,7 @@ static void test_strokerect(SkCanvas* canvas) { |
int height = 100; |
SkBitmap bitmap; |
- bitmap.setConfig(SkBitmap::kA8_Config, width*2, height*2); |
- bitmap.allocPixels(); |
+ bitmap.allocPixels(SkImageInfo::MakeA8(width*2, height*2)); |
bitmap.eraseColor(SK_ColorTRANSPARENT); |
SkScalar dx = 20; |