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

Issue 1801753002: First programmatic smooth scroll should run on the compositor if it can (Closed)

Created:
4 years, 9 months ago by ymalik
Modified:
4 years, 9 months ago
Reviewers:
ajuma, skobes, jbroman
CC:
darktears, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, Eric Willigers, kenneth.christiansen, kinuko+watch, loyso (OOO), rjwright, shans, skobes, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

First programmatic smooth scroll should run on the compositor if it can CompositorAnimationPlayer owned by a ScrollableArea's ProgrammaticScrollAnimator is not initially attached to any layer. As a result, ScrollAnimatorCompositorCoordinator::addAnimation returns false the first time a programmatic scroll is initiated. This CL attaches the animation player to the correct layer when ::updateCompositorState is called. To do so, we need the CompositorAnimationTimeline from the ScrollingCoordinator of a ScrollableArea. This CL exposes the timeline from the subclasses of ScrollableArea. BUG=592799 Committed: https://crrev.com/899920c656fc71ca44cb81ea3a1b73639dab52e1 Cr-Commit-Position: refs/heads/master@{#381379}

Patch Set 1 #

Patch Set 2 : rebase master #

Total comments: 12

Patch Set 3 : worked on review comments #

Patch Set 4 : rebase master #

Patch Set 5 : fix bot compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -0 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor-expected.txt View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.idl View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ProgrammaticScrollAnimator.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
ymalik
4 years, 9 months ago (2016-03-14 16:04:34 UTC) #2
ajuma
Please expand the description to say more about what this patch does. The patch itself ...
4 years, 9 months ago (2016-03-14 17:01:51 UTC) #3
ymalik
+Jeremy for Source/core and Source/platform.
4 years, 9 months ago (2016-03-14 17:22:58 UTC) #6
jbroman
lgtm with nits https://codereview.chromium.org/1801753002/diff/20001/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html File third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html (right): https://codereview.chromium.org/1801753002/diff/20001/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html#newcode24 third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html:24: shouldBeTrue("internals.getProgrammaticScrollAnimationState(document) " + nit: equality comparison ...
4 years, 9 months ago (2016-03-14 17:35:32 UTC) #7
skobes
lgtm https://codereview.chromium.org/1801753002/diff/20001/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html File third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html (right): https://codereview.chromium.org/1801753002/diff/20001/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html#newcode16 third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html:16: // From ScrollingCoordinator::mainThreadScrollingReasonsAsText. nit: actually from ScrollAnimatorCompositorCoordinator::RunState
4 years, 9 months ago (2016-03-14 17:37:48 UTC) #9
ymalik
https://codereview.chromium.org/1801753002/diff/20001/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html File third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html (right): https://codereview.chromium.org/1801753002/diff/20001/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html#newcode16 third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/first-scroll-runs-on-compositor.html:16: // From ScrollingCoordinator::mainThreadScrollingReasonsAsText. On 2016/03/14 17:37:48, skobes wrote: > ...
4 years, 9 months ago (2016-03-14 21:45:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801753002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801753002/60001
4 years, 9 months ago (2016-03-14 22:24:15 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/107014) chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 9 months ago (2016-03-14 22:37:59 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801753002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801753002/80001
4 years, 9 months ago (2016-03-15 17:10:03 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/189363)
4 years, 9 months ago (2016-03-15 21:09:56 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1801753002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1801753002/80001
4 years, 9 months ago (2016-03-15 22:19:35 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-16 01:52:54 UTC) #24
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 01:55:37 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/899920c656fc71ca44cb81ea3a1b73639dab52e1
Cr-Commit-Position: refs/heads/master@{#381379}

Powered by Google App Engine
This is Rietveld 408576698