Support more dataspaces in DataSpaceToColorSpace
Bug: 135133301 Test: ? Create an SkColorSpace for HAL_DATASPACE_TRANSFER_ST2084 and HAL_DATASPACE_TRANSFER_SMPTE_170M. This allows converting ADATASPACE_BT709, ADATASPACE_BT2020, and ADATASPACE_BT709 into SkColorSpaces. In addition, treat HAL_DATASPACE_DCI_P3 (aka HAL_DATASPACE_DCI_P3) specially, because its gamut does not match SkNamedGamut::kSRGB. This will allow Ia8ba4c17b517a05b664c6e317e235836473fd7f6 to use DataSpaceToColorSpace, rather than its own, slightly different version. Change-Id: I24fffd79c2bf251c28c2d0b8c3d2889dbffa772d
Loading
Please register or sign in to comment