Index: bench/PictureRecordBench.cpp |
diff --git a/bench/PictureRecordBench.cpp b/bench/PictureRecordBench.cpp |
index 0666cc421166b302c652adbad2f782129e1e6b00..f890e0d4f6156aefbca43825ab5fea708446a860 100644 |
--- a/bench/PictureRecordBench.cpp |
+++ b/bench/PictureRecordBench.cpp |
@@ -85,8 +85,8 @@ protected: |
// create a simple bitmap |
SkBitmap bitmap; |
- bitmap.setConfig(SkBitmap::kRGB_565_Config, 10, 10); |
- bitmap.allocPixels(); |
+ bitmap.allocPixels(SkImageInfo::Make(10, 10, |
+ kRGB_565_SkColorType, kOpaque_SkAlphaType)); |
// draw a single color into the bitmap |
SkCanvas bitmapCanvas(bitmap); |