Index: tests/TextureCompressionTest.cpp |
diff --git a/tests/TextureCompressionTest.cpp b/tests/TextureCompressionTest.cpp |
index da7a87bd41d36530e5b48283f2cd675a59f45e33..b93cabb4e0e0e0187ac1b9e6c7d8d9b41f5fbc91 100644 |
--- a/tests/TextureCompressionTest.cpp |
+++ b/tests/TextureCompressionTest.cpp |
@@ -58,8 +58,7 @@ DEF_TEST(CompressAlphaFailDimensions, reporter) { |
bool setInfoSuccess = bitmap.setInfo(info); |
REPORTER_ASSERT(reporter, setInfoSuccess); |
- bool allocPixelsSuccess = bitmap.allocPixels(info); |
- REPORTER_ASSERT(reporter, allocPixelsSuccess); |
+ bitmap.allocPixels(info); |
bitmap.unlockPixels(); |
for (int i = 0; i < SkTextureCompressor::kFormatCnt; ++i) { |
@@ -92,8 +91,7 @@ DEF_TEST(CompressAlphaFailColorType, reporter) { |
bool setInfoSuccess = bitmap.setInfo(info); |
REPORTER_ASSERT(reporter, setInfoSuccess); |
- bool allocPixelsSuccess = bitmap.allocPixels(info); |
- REPORTER_ASSERT(reporter, allocPixelsSuccess); |
+ bitmap.allocPixels(info); |
bitmap.unlockPixels(); |
for (int i = 0; i < SkTextureCompressor::kFormatCnt; ++i) { |
@@ -128,8 +126,7 @@ DEF_TEST(CompressCheckerboard, reporter) { |
bool setInfoSuccess = bitmap.setInfo(info); |
REPORTER_ASSERT(reporter, setInfoSuccess); |
- bool allocPixelsSuccess = bitmap.allocPixels(info); |
- REPORTER_ASSERT(reporter, allocPixelsSuccess); |
+ bitmap.allocPixels(info); |
bitmap.unlockPixels(); |
// Populate bitmap |
@@ -215,8 +212,7 @@ DEF_TEST(CompressLATC, reporter) { |
bool setInfoSuccess = bitmap.setInfo(info); |
REPORTER_ASSERT(reporter, setInfoSuccess); |
- bool allocPixelsSuccess = bitmap.allocPixels(info); |
- REPORTER_ASSERT(reporter, allocPixelsSuccess); |
+ bitmap.allocPixels(info); |
bitmap.unlockPixels(); |
int latcDimX, latcDimY; |