Index: tests/AnnotationTest.cpp |
diff --git a/tests/AnnotationTest.cpp b/tests/AnnotationTest.cpp |
index 3d146649a10002e5ef766282321919b0d5de49c1..274d53ea4ff86ef1529a206c37d4a008b4692866 100644 |
--- a/tests/AnnotationTest.cpp |
+++ b/tests/AnnotationTest.cpp |
@@ -26,8 +26,7 @@ static bool ContainsString(const char* data, size_t dataSize, const char* needle |
DEF_TEST(Annotation_NoDraw, reporter) { |
SkBitmap bm; |
- bm.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); |
- bm.allocPixels(); |
+ bm.allocN32Pixels(10, 10); |
bm.eraseColor(SK_ColorTRANSPARENT); |
SkCanvas canvas(bm); |