Index: bench/BitmapScaleBench.cpp |
diff --git a/bench/BitmapScaleBench.cpp b/bench/BitmapScaleBench.cpp |
index f6c2da17a98f58169558e594bd59409d148461a4..93e10fa43cc04723a15cc5569eaf68e000d136b7 100644 |
--- a/bench/BitmapScaleBench.cpp |
+++ b/bench/BitmapScaleBench.cpp |
@@ -57,14 +57,10 @@ protected: |
} |
virtual void onPreDraw() { |
- fInputBitmap.setConfig(SkBitmap::kARGB_8888_Config, |
- fInputSize, fInputSize, 0, kOpaque_SkAlphaType); |
- fInputBitmap.allocPixels(); |
+ fInputBitmap.allocN32Pixels(fInputSize, fInputSize, true); |
fInputBitmap.eraseColor(SK_ColorWHITE); |
- fOutputBitmap.setConfig(SkBitmap::kARGB_8888_Config, |
- fOutputSize, fOutputSize, 0, kOpaque_SkAlphaType); |
- fOutputBitmap.allocPixels(); |
+ fOutputBitmap.allocN32Pixels(fOutputSize, fOutputSize, true); |
fMatrix.setScale( scale(), scale() ); |
} |