Index: samplecode/SampleText.cpp |
diff --git a/samplecode/SampleText.cpp b/samplecode/SampleText.cpp |
index 7e98171daa4ea96215d1f9acd40376c61f7c2b06..c1aca6398c6cb6cbbc8693067a5ee067b55c6948 100644 |
--- a/samplecode/SampleText.cpp |
+++ b/samplecode/SampleText.cpp |
@@ -273,8 +273,8 @@ protected: |
} |
static void make_textstrip(SkBitmap* bm) { |
- bm->setConfig(SkBitmap::kRGB_565_Config, 200, 18); |
- bm->allocPixels(); |
+ bm->allocPixels(SkImageInfo::Make(200, 18, kRGB_565_SkColorType, |
+ kOpaque_SkAlphaType)); |
bm->eraseColor(SK_ColorWHITE); |
SkCanvas canvas(*bm); |