summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2019-04-10 09:58:05 -0700
committer Siarhei Vishniakou <svv@google.com> 2019-04-19 11:22:09 -0700
commitb986d39150692c406d244d166144177b712a59a3 (patch)
tree5778c6712f4a3c143e4e0d07faba70af9d01e4df /vulkan/libvulkan/api.cpp
parenta85bb703b9deabce3d3d90519eb803d45700dc12 (diff)
Prevent entries with identical times
Currently, VelocityTracker adds all MotionEvents with actions DOWN, MOVE, and POINTER_DOWN. But sometimes these events can have identical timestamps, for example MOVE and the following POINTER_DOWN. This breaks algorithms that rely on computing differences between times of the events. If the difference is zero, and division is performed, then very large numbers can result from this. Bug: 129797752 Test: atest libinput_tests Change-Id: I843fd9efbdbf786ab7aa5ed62b4e1395ae7cf335 Merged-In: I843fd9efbdbf786ab7aa5ed62b4e1395ae7cf335
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions