Index: bench/GameBench.cpp |
diff --git a/bench/GameBench.cpp b/bench/GameBench.cpp |
index c0a0e1b1b3e21fdab41c8188766442b8adc9b1f3..d197f3e1704c4e8f0cd7ba1ab124f6c08f57fff6 100644 |
--- a/bench/GameBench.cpp |
+++ b/bench/GameBench.cpp |
@@ -248,9 +248,7 @@ private: |
void makeCheckerboard() { |
static int kCheckSize = 16; |
- fCheckerboard.setConfig(SkBitmap::kARGB_8888_Config, |
- kCheckerboardWidth, kCheckerboardHeight); |
- fCheckerboard.allocPixels(); |
+ fCheckerboard.allocN32Pixels(kCheckerboardWidth, kCheckerboardHeight); |
SkAutoLockPixels lock(fCheckerboard); |
for (int y = 0; y < kCheckerboardHeight; ++y) { |
int even = (y / kCheckSize) % 2; |
@@ -283,8 +281,7 @@ private: |
} |
} |
- fAtlas.setConfig(SkBitmap::kARGB_8888_Config, kTotAtlasWidth, kTotAtlasHeight); |
- fAtlas.allocPixels(); |
+ fAtlas.allocN32Pixels(kTotAtlasWidth, kTotAtlasHeight); |
SkAutoLockPixels lock(fAtlas); |
for (int y = 0; y < kTotAtlasHeight; ++y) { |