Index: samplecode/SampleFontCache.cpp |
diff --git a/samplecode/SampleFontCache.cpp b/samplecode/SampleFontCache.cpp |
index c5f44577294ff80418714823a96df59c9f8c0615..77f66b0eff58d63fd83043f41e8d7ae84f9bfdd7 100644 |
--- a/samplecode/SampleFontCache.cpp |
+++ b/samplecode/SampleFontCache.cpp |
@@ -92,8 +92,9 @@ public: |
status = pthread_create(&fMThreads[i], NULL, measure_proc, NULL); |
SkASSERT(0 == status); |
- fBitmaps[i].setConfig(SkBitmap::kRGB_565_Config, 320, 240); |
- fBitmaps[i].allocPixels(); |
+ fBitmaps[i].allocPixels(SkImageInfo::Make(320, 240, |
+ kRGB_565_SkColorType, |
+ kOpaque_SkAlphaType)); |
status = pthread_create(&fDThreads[i], NULL, draw_proc, &fBitmaps[i]); |
SkASSERT(0 == status); |
} |