|
Run smooth scroll animations on the compositor when possible
This CL implements "immediate retargeting" shown in the following diagram:
https://docs.google.com/drawings/d/1z76m-GMDgLI-clkfroLJ-5yhsHkmriZr_swP0kn5iw4
This CL does the following
- Add a new state to ScrollAnimatorCompositorCoordinator to update the target
offset on the compositor
- Use the ScrollAnimatorCompositorCoordinator to schedule anim
- Add plumbing from the animators to the animation controller to abort
animations
Sample test pages:
yashmalik.com/nested_scroll_mousewheel_listener.html
yashmalik.com/nested_scroll_mousewheel_listener_15ms_janky.html (tight loop in RAF)
BUG= 552556
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/5534a2b2972534b523014c803e1e0e0541855cc7
Cr-Commit-Position: refs/heads/master@{#366685}
Total comments: 15
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+469 lines, -70 lines) |
Patch |
|
M |
cc/animation/animation_player.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
cc/animation/animation_player.cc
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
cc/blink/web_compositor_animation_player_impl.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
cc/blink/web_compositor_animation_player_impl.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
cc/blink/web_layer_impl.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
cc/blink/web_layer_impl.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
cc/layers/layer.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
cc/layers/layer.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/keyboard-scroll.html
|
View
|
1
2
|
1 chunk |
+114 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/keyboard-scroll-expected.txt
|
View
|
1
2
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/mousewheel-scroll.html
|
View
|
1
2
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/fast/scroll-behavior/smooth-scroll/mousewheel-scroll-expected.txt
|
View
|
1
2
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/frame/FrameView.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/input/EventHandler.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ProgrammaticScrollAnimator.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ProgrammaticScrollAnimator.cpp
|
View
|
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollAnimator.h
|
View
|
1
2
|
2 chunks |
+14 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
|
View
|
1
2
3
|
8 chunks |
+155 lines, -36 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h
|
View
|
1
2
|
4 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
|
View
|
|
3 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp
|
View
|
|
4 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollAnimatorTest.cpp
|
View
|
|
4 chunks |
+19 lines, -13 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollableArea.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
|
View
|
|
3 chunks |
+11 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/WebCompositorAnimationPlayer.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/WebLayer.h
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
Total messages: 24 (9 generated)
|