summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Paul Ramirez <peramirez@google.com> 2024-11-11 21:49:51 +0000
committer Paul Ramirez <peramirez@google.com> 2024-11-20 23:57:51 +0000
commit53463397c3b84bb71d7fe155a8ada86fdcc0e96b (patch)
treef56a833a21b8347ba608befaeb416c109917d2bd /vulkan/libvulkan/api.cpp
parent08ee19997d0ad4fab38465ef878b666c9fffb203 (diff)
Fix One Euro filter's units of computation
Changed the units that the One Euro filter uses to compute the filtered coordinates. This was causing a crash because if two timestamps were sufficiently close to each other, by the time of implicitly converting from nanoseconds to seconds, they were considered equal. This led to a zero division when calculating the sampling frequency. Now, everything is handled in the scale of nanoseconds, and conversion are done if and only if they're necessary. Bug: 297226446 Flag: EXEMPT bugfix Test: TEST=libinput_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST Change-Id: I7fced6db447074cccb3d938eb9dc7a9707433f53
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions