DescriptionRound the scroll offset synced back to main instead of flooring.
When scrolling up, flooring the scroll delta sent back to main can result
in main thinking that we have scrolled up by a pixel while cc still positions
layers as if we are at the old scroll position. To be technically correct
according to the frame that will be produced, we would need to round according
to the current scroll snap size but this isn ot easily known at the time of
rounding so we use the nearest integer since this is the common case.
BUG=663291
TEST=LayerTreeHostImplTest.SyncSubpixelScrollDelta
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Committed: https://crrev.com/75a7e4cb1ec29ded2e52539259233356caa883c8
Cr-Commit-Position: refs/heads/master@{#434022}
Patch Set 1 #Patch Set 2 : Adjust for differently rounded scroll deltas in perspective scroll test. #Patch Set 3 : Update test. #Patch Set 4 : Round target scroll position in android test. #Patch Set 5 : Ensure previous test has been completed before starting next test in scroll-interruption-test. #Patch Set 6 : Wait for scroll animation to complete before checking main thread scrolling reasons. #Messages
Total messages: 33 (18 generated)
|