diff options
author | 2024-09-30 01:39:00 +0000 | |
---|---|---|
committer | 2024-10-09 00:58:05 +0000 | |
commit | 4d3b03adfa3543158c982546f3d6daec7eed06e8 (patch) | |
tree | a9878f6dd922e27378fa98ea894ab399457f4c0b /libs/gui/SurfaceComposerClient.cpp | |
parent | 7f1efed1f8fcae76c021bfcea244c4f92844a608 (diff) |
Add logic to overwrite pointer coordinates in motion event
Included ResampledValueIsUsedForIdenticalCoordinates from
TouchResampling_test.cpp, and added the missing logic in LegacyResampler
to pass the test. The CL wrongly assumes pointer information guarantees
between motion events, that is, pointer IDs can appear in different
order between samples. This issue is fixed in the second to last CL in the relation chain by using an associative array as a data structure to store and access pointer properties and coordinates.
Bug: 297226446
Flag: EXEMPT refactor
Test: TEST=libinput_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST --gtest_filter="InputConsumerResamplingTest*"
Change-Id: I12eb8eae3b3389cfb5449cc24a785bd9d9a6d280
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions