Index: bench/BlurImageFilterBench.cpp |
diff --git a/bench/BlurImageFilterBench.cpp b/bench/BlurImageFilterBench.cpp |
index bd36b5b3c44445ad22e9fb6b2b29a46d48de6516..7739730a778d77db43ef7a22214451ea05c12d8a 100644 |
--- a/bench/BlurImageFilterBench.cpp |
+++ b/bench/BlurImageFilterBench.cpp |
@@ -55,10 +55,8 @@ private: |
void make_checkerboard() { |
const int w = fIsSmall ? FILTER_WIDTH_SMALL : FILTER_WIDTH_LARGE; |
const int h = fIsSmall ? FILTER_HEIGHT_LARGE : FILTER_HEIGHT_LARGE; |
- fCheckerboard.setConfig(SkBitmap::kARGB_8888_Config, w, h); |
- fCheckerboard.allocPixels(); |
- SkBitmapDevice device(fCheckerboard); |
- SkCanvas canvas(&device); |
+ fCheckerboard.allocN32Pixels(w, h); |
+ SkCanvas canvas(fCheckerboard); |
canvas.clear(0x00000000); |
SkPaint darkPaint; |
darkPaint.setColor(0xFF804020); |