summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Yiwei Zhang <zzyiwei@google.com> 2019-12-18 23:12:43 -0800
committer Yiwei Zhang <zzyiwei@google.com> 2019-12-19 13:14:45 -0800
commit705c2e6bbe601c421be3931248967ca33eb7bb98 (patch)
tree1c094550dd99e4bce19b5a92354548b542b48744 /libs/gui/BufferQueueThreadState.cpp
parent80be60e1adc451b3e37a115cf690401eee54229e (diff)
Vulkan: implement timeout for vkAcquireNextImageKHR
ANativeWindow api allows to set dequeueBuffer timeout through binder IPC. It's difficult to change IGBP api to merge dequeueBuffer and setting timeout into one binder without reving up the HAL. Thus we just cache the timeout at swapchain and only update when the timeout set in vkAcquireNextImageKHR has changed. To be noted, IGBP api takes nsecs_t which is backed by int64_t, and it uses -1 as the hint to be blocking. So the uint64_t timeout set in vkAcquireNextImageKHR will be trimmed internally. Bug: 146534593 Test: dEQP-VK.wsi.android.swapchain.acquire.too_many Test: dEQP-VK.wsi.android.swapchain.acquire.too_many_timeout Change-Id: I9bd73a17dba8d86994c5863082534a082317f700
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions