diff options
| author | 2022-08-27 05:48:51 +0000 | |
|---|---|---|
| committer | 2022-09-07 16:25:32 -0700 | |
| commit | 37acf6e3b7ff4b30567eb3210560db3d73c20a58 (patch) | |
| tree | dc84a2ffd7f3ae5f1c9540c9499f5d8f20d6b11c /services/surfaceflinger/RegionSamplingThread.cpp | |
| parent | 89eca3248127fbe97a8669725bd2649163dd7831 (diff) | |
Make VelocityTracker 1D
Currently, VelocityTracker is strictly tied to X and Y axes. It's APIs
act on both axes, and its component structs (e.g. Position, Estimator)
are tied to both X and Y axes. As a step towards supporting more axes
for velocity tracking, this change:
- removes the Position struct: stores/processes data as pure floats, one
axis at a time
- makes Estimator and Strategy specific to a single axis, instead of
dealing with both/only X and Y at the same time
Furthermore, we have pulled into VelocityTracker the logic to compute
all velocity. This helps making the immediate JNI layer light-weight in
addition to allowing us to test the logic (which is non-trivial and
benefits from tests).
Bug: 32830165
Test: VelocityTracker_test unaffected (atest libinput_tests)
Change-Id: I181af7a033eb647e9cb97db9b86a36ae972290a5
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions