diff options
author | reed <reed@chromium.org> | 2014-06-09 19:52:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-09 19:52:07 -0700 |
commit | 6c22573edb234ad14df947278cfed010669a39a7 (patch) | |
tree | ede271bf82d823809c12d9b4ef3801dc7d6ddd73 /tests/KtxTest.cpp | |
parent | 7c5c9da436194c75d91797f114a87a6119ca255d (diff) |
hide SkBitmap::setConfig
patch from issue 325733002
TBR=scroggo
Author: reed@chromium.org
Review URL: https://codereview.chromium.org/322963002
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()); |