Fixed timestamp for the GSB sent after deferred fling cancellation.
When a GFC arrives, the fling controller doesn't cancel the active fling immediately. If the user starts a new scroll sequence while the fling cancellation is deferred, the controller suppresses the GSB/GSU events till either a new GFS arrives and the current fling gets boosted, or the controller decides that it is gonna cancel the fling and resume the new scroll sequence. To resume the new scroll sequence the controller sends a GSB since the original GSB of the sequence is suppressed. This cl changes the GSB event to have the timestamp of the last suppressed event instead of using the current time. This change is necessary to make sure that the monotonic time of a scroll sequence is not violated. Bug: 839051 Change-Id: I295de64deaad4b072ec69a1bbbc192f182577cf4 Reviewed-on: https://chromium-review.googlesource.com/1043017Reviewed-by:Dave Tapuska <dtapuska@chromium.org> Commit-Queue: Sahel Sharifymoghaddam <sahel@chromium.org> Cr-Commit-Position: refs/heads/master@{#556063}
Showing
Please register or sign in to comment