summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Marin Shalamanov <shalamanov@google.com> 2021-05-26 16:54:40 +0200
committer Marin Shalamanov <shalamanov@google.com> 2021-06-14 10:46:56 +0200
commit993ddf4afb45b389e950a16237de720783fad485 (patch)
tree6e84763d873daf8304d51c8e662977600b386e6f /vulkan/libvulkan/api.cpp
parentc2baccc476ad91b538e84e3f4379a66f237ee07b (diff)
SF: Recreate display on resolution changes
When the resolution changes from SurfaceFlinger we need to recreate the frambuffer. This CL reuses the existing mechanism for processing display changes to do that. More specifically the logic in this CL does the same as if there was a subsequent hotplug "connected" event. This removes the need HWC HAL implementations to send hotplug events on each resolution change (which was violating VTS). This change impacts only devices which support multiple resolutions (e.g. TV but no phones). Test: atest DisplayTest SetFrameRateTest Test: plug hdmi out and in and verify that there are no crashes Bug: 188684566 Change-Id: I8a00657e9eeb1db716ce58aac7b3e3e40f898352
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions