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

Unified Diff: tests/ImageDecodingTest.cpp

Issue 427593002: If decoder doesn't ouput indexed color, don't check colortable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ImageDecodingTest.cpp
diff --git a/tests/ImageDecodingTest.cpp b/tests/ImageDecodingTest.cpp
index d8e813d10e78af60b53665f17a106fff332e4f89..7ed57bed4ed38dca3d3f35b68c852d698c16d3c6 100644
--- a/tests/ImageDecodingTest.cpp
+++ b/tests/ImageDecodingTest.cpp
@@ -738,6 +738,9 @@ DEF_TEST(DiscardablePixelRef_SecondLockColorTableCheck, r) {
ERRORF(r, "SkInstallDiscardablePixelRef [randPixels.gif] failed.");
return;
}
+ if (kIndex_8_SkColorType != bitmap.colorType()) {
+ return;
+ }
{
SkAutoLockPixels alp(bitmap);
REPORTER_ASSERT(r, bitmap.getColorTable() && "first pass");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698