summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Steven Thomas <steventhomas@google.com> 2019-09-30 17:15:05 -0700
committer Steven Thomas <steventhomas@google.com> 2019-09-30 17:15:05 -0700
commitc909845dfcdfc7c93c1c4ab7b2c586fff482e892 (patch)
tree6d2b2d57d828c2f37e04adae99d9e67ea74de54f /vulkan/libvulkan/api.cpp
parent0a7c50d39a0096af1357c48166817dccfbbbff30 (diff)
Return correct config from getActiveConfig()
In Android Q we made changing the active display config via setActiveConfig() or setAllowedDisplayConfigs() a non-blocking call, but we didn't update getActiveConfig() to account for this, which made it possible for clients to call setActiveConfig() followed by getActiveConfig() and get the previous config value back, instead of the value the client just set. Make getActiveConfig() first check to see if a config change is pending, and if so, return the pending value instead of the current value. Bug: 139392135 Test: Ran with some extra logs, confirmed we now return the pending value (when we have one) from getActiveConfig(). Change-Id: I7665fd1f29073b2a3f5414defef0103270bf1f9f
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions