gecko-dev/widget/tests/gtest
Markus Stange 0cd35bc56e Bug 1676771 - Add a TouchResampler class. r=kats
This is similar to GeckoTouchDispatcher from the B2G days:
https://hg.mozilla.org/mozilla-central/file/49bbfe7887d5739df62d6b8d05bc41cfe3161f08/widget/gonk/GeckoTouchDispatcher.cpp

The values for the various kTouchResample* constants were taken from the
original pref values:
https://hg.mozilla.org/mozilla-central/file/49bbfe7887d5739df62d6b8d05bc41cfe3161f08/gfx/thebes/gfxPrefs.h#l225

There are some extra sources of complexity:
 - TouchResampler tries hard to generate one outgoing event per incoming event,
   so that the result code tracking to the Java front-end code works properly.
 - TouchResampler tries hard to never lose any historicalData information, so
   that the velocity tracker has a maximum amount of information to work with.
 - TouchResampler has a "reset to non-resampled state" functionality so that
   overpredictions are corrected when the finger pauses or when a touch non-move
   event fires.

Differential Revision: https://phabricator.services.mozilla.com/D96795
2020-11-18 03:57:35 +00:00
..
moz.build Bug 1676771 - Add a TouchResampler class. r=kats 2020-11-18 03:57:35 +00:00
TestTimeConverter.cpp
TestTouchResampler.cpp Bug 1676771 - Add a TouchResampler class. r=kats 2020-11-18 03:57:35 +00:00