Make timestamps on gestures match incoming events

In the gesture library, we use MSC_TIMESTAMP from the touch controller
to adjust the timestamp from the browser, allowing more accurate
timestamp deltas.  However, some skew can occur between the two clock
sources, causing issues in the browser.

This CL adjusts the timestamps after the gestures are produced to more
closely match the original timestamp for events.

BUG=chromium:983375
TEST=manual testing and check against regression test suite

Change-Id: Iae48d1ce8c9d3b1bfd1e6bad2c808c21689ca6df
Reviewed-on: https://chromium-review.googlesource.com/1718995
Tested-by: Sean O'Brien <seobrien@chromium.org>
Commit-Ready: Sean O'Brien <seobrien@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Sean O'Brien <seobrien@chromium.org>
Reviewed-by: Harry Cutts <hcutts@chromium.org>
2 files changed