aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar krajcevski <krajcevski@google.com>2014-08-05 07:37:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-05 07:37:27 -0700
commite90c900ed7b2be3d0f9c7134d7fcd5f820b0464c (patch)
treedfb26735c967ec8763b50b9ed5e7a83889cd0970 /tests
parent72336ed7e16d2672543e0ceca9ddb843c63c8df6 (diff)
Add ETC1 format to SkTextureCompressor
R=robertphillips@google.com Author: krajcevski@google.com Review URL: https://codereview.chromium.org/432143002
Diffstat (limited to 'tests')
-rw-r--r--tests/TextureCompressionTest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/TextureCompressionTest.cpp b/tests/TextureCompressionTest.cpp
index daf9883a13..8694389fe7 100644
--- a/tests/TextureCompressionTest.cpp
+++ b/tests/TextureCompressionTest.cpp
@@ -132,11 +132,12 @@ DEF_TEST(CompressCheckerboard, reporter) {
for (int i = 0; i < SkTextureCompressor::kFormatCnt; ++i) {
const SkTextureCompressor::Format fmt = static_cast<SkTextureCompressor::Format>(i);
- // ASTC is for RGBA data, and the decompressed buffer
+ // Ignore formats for RGBA data, since the decompressed buffer
// won't match the size and contents of the original.
// TODO: Create separate tests for RGB and RGBA data once
- // ASTC decompression is implemented.
- if (SkTextureCompressor::kASTC_12x12_Format == fmt) {
+ // ASTC and ETC1 decompression is implemented.
+ if (SkTextureCompressor::kASTC_12x12_Format == fmt ||
+ SkTextureCompressor::kETC1_Format == fmt) {
continue;
}