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

Issue 676853002: Defer scroll status determination until scrolling has occurred (Closed)

Created:
6 years, 2 months ago by jdduke (slow)
Modified:
6 years, 2 months ago
Reviewers:
jamesr, brianderson, boliu
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Defer scroll status determination until scrolling has occurred As of M38, the first touchmove in a sequence is no longer special; it can be preventDefault'ed while allowing future scrolling. One side effect of this is that GestureScrollBegin may be forwarded to the compositor even if the page consumes the remainder of the touch sequence. This in turn caused the scheduler to enter smoothness priority mode, interfering with optimal touch event dispatch. As a workaround, tweak the semantics of |LTHI::IsCurrentlyScrolling()| to indicate both that there is an actively scrolling layer and that scrolling has occurred, renaming to |IsActivelyScrolling()|. Also stop throttling touch event acks on the renderer main thread as there is no current evidence that this feature improves touch interaction, and it may unintentionally bump the scheduler out of smoothness mode. BUG=426621 Committed: https://crrev.com/16dde6e3648b8d67675846bd74c8a99b732269fd Cr-Commit-Position: refs/heads/master@{#301001}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updates #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -10 lines) Patch
M cc/trees/layer_tree_host_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 1 chunk +14 lines, -0 lines 2 comments Download
M cc/trees/thread_proxy.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
jdduke (slow)
Thoughts?
6 years, 2 months ago (2014-10-23 19:12:04 UTC) #2
brianderson
https://codereview.chromium.org/676853002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (left): https://codereview.chromium.org/676853002/diff/1/cc/trees/layer_tree_host_impl.cc#oldcode2411 cc/trees/layer_tree_host_impl.cc:2411: client_->RenewTreePriority(); Why is this removed? Is it because we'll ...
6 years, 2 months ago (2014-10-23 20:55:51 UTC) #3
jdduke (slow)
boliu@: Sorry for the noise, but would you mind ensuring the latest version works (with ...
6 years, 2 months ago (2014-10-23 22:12:50 UTC) #5
boliu
PS2 fix still works
6 years, 2 months ago (2014-10-23 22:27:15 UTC) #6
jdduke (slow)
jamesr@: Owner review for content/renderer? Thanks.
6 years, 2 months ago (2014-10-23 22:36:47 UTC) #8
jamesr
lgtm
6 years, 2 months ago (2014-10-23 22:37:38 UTC) #9
brianderson
https://codereview.chromium.org/676853002/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/676853002/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc#newcode522 cc/trees/layer_tree_host_impl_unittest.cc:522: EXPECT_FALSE(host_impl_->IsActivelyScrolling()); Is this the expectation that would fail without ...
6 years, 2 months ago (2014-10-23 22:39:42 UTC) #10
jdduke (slow)
https://codereview.chromium.org/676853002/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/676853002/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc#newcode522 cc/trees/layer_tree_host_impl_unittest.cc:522: EXPECT_FALSE(host_impl_->IsActivelyScrolling()); On 2014/10/23 22:39:42, brianderson wrote: > Is this ...
6 years, 2 months ago (2014-10-23 22:45:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/676853002/20001
6 years, 2 months ago (2014-10-23 23:01:22 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 2 months ago (2014-10-24 00:23:06 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-24 00:23:40 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/16dde6e3648b8d67675846bd74c8a99b732269fd
Cr-Commit-Position: refs/heads/master@{#301001}

Powered by Google App Engine
This is Rietveld 408576698