Index: tests/CodexTest.cpp |
diff --git a/tests/CodexTest.cpp b/tests/CodexTest.cpp |
index 81d8eb42b5b8341b9a698f7899d6fb05964fbf05..27c48fb4b88919f22fb88853bb2bf5c626946b43 100644 |
--- a/tests/CodexTest.cpp |
+++ b/tests/CodexTest.cpp |
@@ -158,7 +158,9 @@ static void check(skiatest::Reporter* r, |
REPORTER_ASSERT(r, result == SkCodec::kSuccess); |
} |
// verify that scanline decoding gives the same result. |
- compare_to_good_digest(r, digest, bm); |
+ if (SkScanlineDecoder::kTopDown_SkScanlineOrder == scanlineDecoder->getScanlineOrder()) { |
+ compare_to_good_digest(r, digest, bm); |
+ } |
} else { |
REPORTER_ASSERT(r, !scanlineDecoder); |
} |
@@ -209,7 +211,7 @@ DEF_TEST(Codec, r) { |
check(r, "yellow_rose.webp", SkISize::Make(400, 301), false, true); |
// BMP |
- check(r, "randPixels.bmp", SkISize::Make(8, 8), false, false); |
+ check(r, "randPixels.bmp", SkISize::Make(8, 8), true, false); |
// ICO |
// These two tests examine interestingly different behavior: |