Index: tests/QuickRejectTest.cpp |
diff --git a/tests/QuickRejectTest.cpp b/tests/QuickRejectTest.cpp |
index 5c1b8776c21697674a2f2e0c6137d12d3c83a591..2d367389bb81f1e82d0c5cfcd951914270540e63 100644 |
--- a/tests/QuickRejectTest.cpp |
+++ b/tests/QuickRejectTest.cpp |
@@ -40,13 +40,11 @@ public: |
static void test_drawBitmap(skiatest::Reporter* reporter) { |
SkBitmap src; |
- src.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); |
- src.allocPixels(); |
+ src.allocN32Pixels(10, 10); |
src.eraseColor(SK_ColorWHITE); |
SkBitmap dst; |
- dst.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); |
- dst.allocPixels(); |
+ dst.allocN32Pixels(10, 10); |
dst.eraseColor(SK_ColorTRANSPARENT); |
SkCanvas canvas(dst); |