summaryrefslogtreecommitdiff
path: root/libs/input/KeyLayoutMap.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2023-03-26 02:57:47 +0000
committer Alec Mouri <alecmouri@google.com> 2023-04-06 16:14:04 +0000
commit74c7ae1ff65d92c9e5a79498ab6f6ce9c17fc2a9 (patch)
tree9d482255caa58713c7900c7768b4da7e4b35c328 /libs/input/KeyLayoutMap.cpp
parent5cd6a96a69c4257cd83789bd83ccfee7d6dd3d7d (diff)
Strengthen dataspace guarantees in SurfaceFlinger.
Correctly converting from yuv to rgb in RenderEngine requires that the buffer dataspace is accurate. So, if the dataspace on a layer differs from the buffer then update the dataspace in the buffer's metadata to be consistent. Moreover, some GPU drivers do not perform yuv2rgb in a reasonable way when the dataspace is UNKNOWN. In that case, reauthor the dataspace to be sRGB so that there is consistent behavior for an UNKNOWN dataspace. Finally, some GPU drivers cache gralloc metadata on creation of GPU resources, which is not compliant with gralloc expectations. So that vendors have some time to fix the drivers and so that GSI tests pass, recreate GPU resources when the vendor partition is old and the buffer is a YCbCr format. Bug: 247826480 Test: SurfaceControlTest Change-Id: Iee2641acce3926c826e96c56ececb431868d8598
Diffstat (limited to 'libs/input/KeyLayoutMap.cpp')
0 files changed, 0 insertions, 0 deletions