Index: tests/BitmapHeapTest.cpp |
diff --git a/tests/BitmapHeapTest.cpp b/tests/BitmapHeapTest.cpp |
index da41f477f7fb492be9f103de894a8c00a1aed58a..c6144b7c6a3a1a63a66960a6ec476fa2e6c5b792 100644 |
--- a/tests/BitmapHeapTest.cpp |
+++ b/tests/BitmapHeapTest.cpp |
@@ -33,8 +33,7 @@ public: |
DEF_TEST(BitmapHeap, reporter) { |
// Create a bitmap shader. |
SkBitmap bm; |
- bm.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); |
- bm.allocPixels(); |
+ bm.allocN32Pixels(2, 2); |
bm.eraseColor(SK_ColorRED); |
uint32_t* pixel = bm.getAddr32(1,0); |
*pixel = SK_ColorBLUE; |