surfaceflinger: compute color mode mappings on hotplug
Populuate DisplayDevice::mColorModes when a DisplayDevice is created. DisplayDevice::mColorModes is a map from any possible Dataspace/RenderIntent to supported Dataspace/ColorMode/RenderIntent. This makes sure we never ask the composer to use an unsupported Dataspace/ColorMode/RenderIntent combination. The map is populated on hotplug because we don't want to compute the mapping on the fly at each frame. Bug: 79843697 Bug: 75981986 Test: manual under sRGB, P3, HDR Change-Id: I967d09b1e8d31ea631b202db1799a7a2a0c5ee3f Merged-In: I967d09b1e8d31ea631b202db1799a7a2a0c5ee3f
Loading
Please register or sign in to comment