Index: tools/debugger/SkObjectParser.cpp |
diff --git a/tools/debugger/SkObjectParser.cpp b/tools/debugger/SkObjectParser.cpp |
index 6d71a38b7b86e99fab48d49fcb51d0ffc560e655..5f3fa449096306e8c2669c8d3bcd589c3c03c6a0 100644 |
--- a/tools/debugger/SkObjectParser.cpp |
+++ b/tools/debugger/SkObjectParser.cpp |
@@ -26,11 +26,12 @@ SkString* SkObjectParser::BitmapToString(const SkBitmap& bitmap) { |
mBitmap->appendS32(bitmap.width()); |
mBitmap->append(" H: "); |
mBitmap->appendS32(bitmap.height()); |
- |
+ |
const char* gColorTypeStrings[] = { |
- "None", "A8", "565", "4444", "RGBA", "BGRA", "Index8", "G8" |
+ "None", "A8", "565", "4444", "RGBA", "BGRA", "Index8", "G8", "RGBAf16" |
}; |
- SkASSERT(kLastEnum_SkColorType + 1 == SK_ARRAY_COUNT(gColorTypeStrings)); |
+ static_assert(kLastEnum_SkColorType + 1 == SK_ARRAY_COUNT(gColorTypeStrings), |
+ "colortype names do not match colortype enum"); |
mBitmap->append(" ColorType: "); |
mBitmap->append(gColorTypeStrings[bitmap.colorType()]); |