summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2018-11-02 17:41:58 -0700
committer Siarhei Vishniakou <svv@google.com> 2018-11-02 18:04:22 -0700
commit4bc561caa5062c43ab7c4f0b681717e8f6e315bd (patch)
treefb265236bdb64dbed2ba5b3476f56e47aa15fb34 /vulkan/libvulkan/api.cpp
parent6bdb3cac812cf8fabcb90f71d624d9b4a3776069 (diff)
Look up devices by fd
Instead of storing deviceIndex inside epoll_data_t in the epoll_event, store the file descriptors instead. Since we already have the file descriptors for wake pipe and inotify, we can avoid storing magic numbers. More importantly, this allows us to add video device monitoring. For video devices, the old approach would no longer work, because the same device index would apply to both video device file descriptor and the input device file descriptor. By storing the file descriptor, we can differentiate between the two portions of the same EventHub::Device. Test: atest inputflinger_tests libinput_tests Test: touch interaction with the booted phone Bug: 111480215 Change-Id: Iadb95f2b14499d600167c89f86fde5db82608af0
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions