diff options
Diffstat (limited to 'tests/KtxTest.cpp')
-rw-r--r-- | tests/KtxTest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/KtxTest.cpp b/tests/KtxTest.cpp index ee6a17dabd..94a4c22e03 100644 --- a/tests/KtxTest.cpp +++ b/tests/KtxTest.cpp @@ -27,9 +27,7 @@ DEF_TEST(KtxReadWrite, reporter) { SkRandom rand(0x1005cbad); SkBitmap bm8888; - bm8888.setConfig(SkBitmap::kARGB_8888_Config, 128, 128); - - bool pixelsAllocated = bm8888.allocPixels(); + bool pixelsAllocated = bm8888.allocN32Pixels(128, 128); REPORTER_ASSERT(reporter, pixelsAllocated); uint8_t *pixels = reinterpret_cast<uint8_t*>(bm8888.getPixels()); |