summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Chia-I Wu <olv@google.com> 2018-05-18 10:59:36 -0700
committer Chia-I Wu <olv@google.com> 2018-05-23 15:02:01 -0700
commit0607fbe8956a64151b165ac88ef9f3cf9b4ece5d (patch)
tree97dc47300e5d0efd53f8be9eef55b43a3387c9bb /libs/gui/LayerDebugInfo.cpp
parent62994a4795188c0d7761d58f313bb6182f119ae2 (diff)
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
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions