Index: bench/BitmapBench.cpp |
diff --git a/bench/BitmapBench.cpp b/bench/BitmapBench.cpp |
index a269e906f6cdaf8f275c97dc57f502924bb7d643..e9ba1dcb918d1488575ee353f0933a1538936cac 100644 |
--- a/bench/BitmapBench.cpp |
+++ b/bench/BitmapBench.cpp |
@@ -107,12 +107,10 @@ protected: |
SkBitmap bm; |
if (kIndex_8_SkColorType == fColorType) { |
- bm.setInfo(SkImageInfo::MakeN32(W, H, fAlphaType)); |
+ bm.allocPixels(SkImageInfo::MakeN32(W, H, fAlphaType)); |
} else { |
- bm.setInfo(SkImageInfo::Make(W, H, fColorType, fAlphaType)); |
+ bm.allocPixels(SkImageInfo::Make(W, H, fColorType, fAlphaType)); |
} |
- |
- bm.allocPixels(); |
bm.eraseColor(kOpaque_SkAlphaType == fAlphaType ? SK_ColorBLACK : 0); |
onDrawIntoBitmap(bm); |