Color: Add undefined values to toString methods

This way, we can identify the undefined values later, if they're in use often.

PiperOrigin-RevId: 619967637
This commit is contained in:
huangdarwin 2024-03-28 09:51:17 -07:00 committed by Copybara-Service
parent c5e894e2d6
commit 0730a5976b

View File

@ -421,7 +421,7 @@ public final class ColorInfo implements Bundleable {
case C.COLOR_SPACE_BT2020:
return "BT2020";
default:
return "Undefined color space";
return "Undefined color space " + colorSpace;
}
}
@ -443,7 +443,7 @@ public final class ColorInfo implements Bundleable {
case C.COLOR_TRANSFER_HLG:
return "HLG";
default:
return "Undefined color transfer";
return "Undefined color transfer " + colorTransfer;
}
}
@ -457,7 +457,7 @@ public final class ColorInfo implements Bundleable {
case C.COLOR_RANGE_FULL:
return "Full range";
default:
return "Undefined color range";
return "Undefined color range " + colorRange;
}
}