summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Marin Shalamanov <shalamanov@google.com> 2020-12-29 20:35:13 +0100
committer Marin Shalamanov <shalamanov@google.com> 2021-01-29 18:00:27 +0100
commita903d03540b9ad9a8c36c3d73ead9aed58dc716a (patch)
tree4c4562b7e37cda1c334c5c112067d65d9f14d096 /vulkan/libvulkan/api.cpp
parent1c3cd7709e55c5f04817cf4d86214878ac3ff8f3 (diff)
SF: Query display modes only once during display creation / update
Currently HWComposer::getActiveMode / getModes is called multiple times when creating or updating a display. This is unnecessary and risky because the getActiveMode may return a different value if a hotplug event has ocured in between. In this CL we call getActiveMode and getModes only once and propagate the values using DisplayDeviceState. Bug: 159590486 Test: presubmit Change-Id: I97418163426a0ae19f79bc2912a7d725c953ad01
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions