Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Issue 2511473003: Round the scroll offset synced back to main instead of flooring. (Closed)

Created:
4 years, 1 month ago by flackr
Modified:
4 years, 1 month ago
Reviewers:
weiliangc, boliu
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Round 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)
flackr
Hey, Can you take a look at this change? Currently when we're scrolling up by ...
4 years, 1 month ago (2016-11-16 19:32:29 UTC) #3
weiliangc
LGTM. (Sorry it took so long, I was worried cc used floor somewhere else that ...
4 years, 1 month ago (2016-11-17 19:51:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2511473003/20001
4 years, 1 month ago (2016-11-17 20:04:52 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/337984)
4 years, 1 month ago (2016-11-17 20:59:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2511473003/40001
4 years, 1 month ago (2016-11-18 03:16:03 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/183452)
4 years, 1 month ago (2016-11-18 04:17:58 UTC) #13
flackr
+boliu for android_webview test update.
4 years, 1 month ago (2016-11-18 15:53:09 UTC) #15
boliu
lgtm
4 years, 1 month ago (2016-11-18 16:51:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2511473003/60001
4 years, 1 month ago (2016-11-18 16:58:39 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_trusty_blink_rel on master.tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_trusty_blink_rel/builds/1730)
4 years, 1 month ago (2016-11-18 19:05:10 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2511473003/80001
4 years, 1 month ago (2016-11-21 21:25:06 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_trusty_blink_rel on master.tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_trusty_blink_rel/builds/1854)
4 years, 1 month ago (2016-11-21 23:45:00 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2511473003/100001
4 years, 1 month ago (2016-11-22 22:07:01 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-22 23:40:04 UTC) #31
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 23:42:28 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/75a7e4cb1ec29ded2e52539259233356caa883c8
Cr-Commit-Position: refs/heads/master@{#434022}

Powered by Google App Engine
This is Rietveld 408576698