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

Issue 2863103002: Reduce composited smooth scroll latency by a frame (also fixes latency UMAs). (Closed)

Created:
3 years, 7 months ago by tdresser
Modified:
3 years, 7 months ago
Reviewers:
ajuma, skobes
CC:
chromium-reviews, jam, cc-bugs_chromium.org, darin-cc_chromium.org, dtapuska+chromiumwatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce composited smooth scroll latency by a frame (also fixes latency UMAs). Previously input which triggered a smooth scroll didn't scroll at all on the first frame of the smooth scroll animation. This introduced unnecessary latency, and also prevented out input latency instrumentation from realizing that the input produced a frame. This removes that latency by starting the animation one frame in, and causes our input latency pipeline to recognize that this input triggered a frame being drawn. The main thread case still needs to be fixed. BUG=599910, 717652 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2863103002 Cr-Commit-Position: refs/heads/master@{#472542} Committed: https://chromium.googlesource.com/chromium/src/+/7fe8085f9f4f10d88ec704588adea49392303fbe

Patch Set 1 #

Patch Set 2 : Fix cc_unittests #

Patch Set 3 : Fix test. #

Patch Set 4 : Cleanup. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -23 lines) Patch
M cc/animation/animation_host.h View 1 chunk +6 lines, -4 lines 0 comments Download
M cc/animation/animation_host.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M cc/animation/animation_host_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/animation/scroll_offset_animations_impl.h View 1 chunk +5 lines, -1 line 0 comments Download
M cc/animation/scroll_offset_animations_impl.cc View 2 chunks +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 1 chunk +7 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 6 chunks +13 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/mutator_host.h View 1 chunk +2 lines, -1 line 0 comments Download
A content/browser/renderer_host/input/scroll_latency_browsertest.cc View 1 2 3 1 chunk +136 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (18 generated)
tdresser
+ajuma@ for CC. +skobes@ for smooth scroll changes.
3 years, 7 months ago (2017-05-17 12:08:08 UTC) #16
ajuma
cc lgtm with a question: Now that we're starting the animation part-way through, I wonder ...
3 years, 7 months ago (2017-05-17 13:17:04 UTC) #17
skobes
lgtm This will start one frame in, and finish one frame sooner, right? I think ...
3 years, 7 months ago (2017-05-17 15:35:04 UTC) #18
tdresser
On 2017/05/17 15:35:04, skobes wrote: > lgtm > > This will start one frame in, ...
3 years, 7 months ago (2017-05-17 16:04:40 UTC) #19
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/2863103002/60001
3 years, 7 months ago (2017-05-17 16:05:22 UTC) #21
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 19:58:05 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/7fe8085f9f4f10d88ec704588ade...

Powered by Google App Engine
This is Rietveld 408576698