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"); |