Index: tests/BitmapHasherTest.cpp |
diff --git a/tests/BitmapHasherTest.cpp b/tests/BitmapHasherTest.cpp |
index e39439a11f468170cf711d4c32f8d1a1a0f3e945..3b5170692d1aad8eedb955bbdfa9ce61e8ac51c6 100644 |
--- a/tests/BitmapHasherTest.cpp |
+++ b/tests/BitmapHasherTest.cpp |
@@ -17,8 +17,7 @@ typedef uint64_t checksum_result; |
// Fill in bitmap with test data. |
static void CreateTestBitmap(SkBitmap* bitmap, int width, int height, |
SkColor color, skiatest::Reporter* reporter) { |
- SkImageInfo info = SkImageInfo::MakeN32(width, height, kOpaque_SkAlphaType); |
- REPORTER_ASSERT(reporter, bitmap->allocPixels(info)); |
+ bitmap->allocN32Pixels(width, height, kOpaque_SkAlphaType); |
bitmap->eraseColor(color); |
} |