aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/debugger/SkObjectParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/debugger/SkObjectParser.cpp')
-rw-r--r--tools/debugger/SkObjectParser.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/debugger/SkObjectParser.cpp b/tools/debugger/SkObjectParser.cpp
index 227532a6f4..57f7d91c45 100644
--- a/tools/debugger/SkObjectParser.cpp
+++ b/tools/debugger/SkObjectParser.cpp
@@ -28,7 +28,11 @@ SkString* SkObjectParser::BitmapToString(const SkBitmap& bitmap) {
mBitmap->appendS32(bitmap.height());
const char* gColorTypeStrings[] = {
- "None", "A8", "565", "4444", "RGBA", "BGRA", "Index8", "G8", "RGBAf16"
+ "None", "A8", "565", "4444", "RGBA", "BGRA",
+#ifdef SK_SUPPORT_LEGACY_INDEX_8_COLORTYPE
+ "Index8",
+#endif
+ "G8", "RGBAf16"
};
static_assert(kLastEnum_SkColorType + 1 == SK_ARRAY_COUNT(gColorTypeStrings),
"colortype names do not match colortype enum");