Index: bench/TileBench.cpp |
diff --git a/bench/TileBench.cpp b/bench/TileBench.cpp |
index 9a9e27e95139c7a1aa1d333e0ef4d9cec3cf6089..12c9629ee23d163014eec323b9a6c4640664b48d 100644 |
--- a/bench/TileBench.cpp |
+++ b/bench/TileBench.cpp |
@@ -48,9 +48,7 @@ public: |
, fDoScale(doScale) { |
SkBitmap bm; |
- bm.setConfig(SkBitmap::kARGB_8888_Config, kWidth, kHeight, 0, |
- kOpaque_SkAlphaType); |
- bm.allocPixels(); |
+ bm.allocN32Pixels(kWidth, kHeight, true); |
bm.eraseColor(SK_ColorWHITE); |
create_gradient(&bm); |