Index: src/utils/debugger/SkObjectParser.cpp |
diff --git a/src/utils/debugger/SkObjectParser.cpp b/src/utils/debugger/SkObjectParser.cpp |
index a3b208544e535bdfcf7cdbcc8c7eb6d08a9be456..b932036a89412582b571e15ee0b6bf00fe3b12e2 100644 |
--- a/src/utils/debugger/SkObjectParser.cpp |
+++ b/src/utils/debugger/SkObjectParser.cpp |
@@ -25,13 +25,13 @@ SkString* SkObjectParser::BitmapToString(const SkBitmap& bitmap) { |
mBitmap->append(" H: "); |
mBitmap->appendS32(bitmap.height()); |
- const char* gConfigStrings[] = { |
- "None", "A8", "Index8", "RGB565", "ARGB4444", "ARGB8888" |
+ const char* gColorTypeStrings[] = { |
+ "None", "A8", "565", "4444", "RGBA", "BGRA", "Index8" |
}; |
- SkASSERT(SkBitmap::kConfigCount == SK_ARRAY_COUNT(gConfigStrings)); |
+ SkASSERT(kLastEnum_SkColorType + 1 == SK_ARRAY_COUNT(gColorTypeStrings)); |
- mBitmap->append(" Config: "); |
- mBitmap->append(gConfigStrings[bitmap.config()]); |
+ mBitmap->append(" ColorType: "); |
+ mBitmap->append(gColorTypeStrings[bitmap.colorType()]); |
if (bitmap.isOpaque()) { |
mBitmap->append(" opaque"); |