Index: bench/ImageCacheBench.cpp |
diff --git a/bench/ImageCacheBench.cpp b/bench/ImageCacheBench.cpp |
index 9fc538ebefe3a3c4bbd5c2ef765d6479ce4c9fd1..ef29cf88ff58571495db6619523d3a10c76880f6 100644 |
--- a/bench/ImageCacheBench.cpp |
+++ b/bench/ImageCacheBench.cpp |
@@ -18,16 +18,14 @@ class ImageCacheBench : public SkBenchmark { |
}; |
public: |
ImageCacheBench() : fCache(CACHE_COUNT * 100) { |
- fBM.setConfig(SkBitmap::kARGB_8888_Config, DIM, DIM); |
- fBM.allocPixels(); |
+ fBM.allocN32Pixels(DIM, DIM); |
} |
void populateCache() { |
SkScalar scale = 1; |
for (int i = 0; i < CACHE_COUNT; ++i) { |
SkBitmap tmp; |
- tmp.setConfig(SkBitmap::kARGB_8888_Config, 1, 1); |
- tmp.allocPixels(); |
+ tmp.allocN32Pixels(1, 1); |
fCache.unlock(fCache.addAndLock(fBM, scale, scale, tmp)); |
scale += 1; |
} |