Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Unified Diff: tests/KtxTest.cpp

Issue 322963002: hide SkBitmap::setConfig (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/CachedDecodingPixelRefTest.cpp ('k') | tools/picture_utils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/KtxTest.cpp
diff --git a/tests/KtxTest.cpp b/tests/KtxTest.cpp
index ee6a17dabde3f118d78f3e4c09a09979067da275..94a4c22e033cffa7f767de5e10343be26b3b7438 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());
« no previous file with comments | « tests/CachedDecodingPixelRefTest.cpp ('k') | tools/picture_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698