|
|
Share animations from compositor to main thread.
This CL introduces a new state that a compositor animation can be in, namely,
ABORT_BUT_NEEDS_COMPLETION. When a main thread scrolling reason is added,
the current scroll offset animation is put into this state. The layer animation
controller looks for impl-only animations in this state and passes a TAKEOVER
animation event to the main thread with the animation_curve. The main thread
then completes the animation.
Notes:
- This CL is for impl only animations, i.e, the jidder bug won't be fixed for an
animation running on cc that was initiated by the main thread (keyboard scroll).
Future CL will add the takeover logic for MT-initiated animations.
- This CL doesn't support the takeover notification from the old animation path.
The old path is where we don't use CompositorAnimationPlayer and its better
to not add the plumbing for something that will be removed soon anyway.
Design-doc
https://docs.google.com/a/google.com/document/d/1JUYvp5gilux7bca8vfmE4Rr5BUjSthizmz7g4BnOnBA/edit?usp=sharing
Test page:
http://philipwalton.github.io/polyfill/demos/position-sticky/
BUG= 581875
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/6581bb3e791018e48d078a910ddfdce19a1c10bb
Cr-Commit-Position: refs/heads/master@{#378411}
Total comments: 18
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+478 lines, -36 lines) |
Patch |
 |
M |
cc/animation/animation.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/animation/animation.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/animation/animation_delegate.h
|
View
|
1
2
3
4
5
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/animation/animation_events.h
|
View
|
|
3 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/animation/animation_events.cc
|
View
|
|
1 chunk |
+32 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/animation/animation_host.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/animation/animation_host.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+18 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/animation/animation_player.h
|
View
|
1
2
3
4
5
|
3 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/animation/animation_player.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+16 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/animation/animation_registrar.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/animation/element_animations.h
|
View
|
1
2
3
4
5
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/animation/element_animations.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/animation/layer_animation_controller.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/animation/layer_animation_controller.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+54 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/animation/layer_animation_controller_unittest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+77 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/animation/scroll_offset_animation_curve.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/animation/scroll_offset_animation_curve.cc
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/blink/web_to_cc_animation_delegate_adapter.h
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer_impl.h
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer_impl.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/animation_timelines_test_common.h
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_hooks.h
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_impl.h
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_impl.cc
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/animation/CompositorScrollOffsetAnimationCurve.h
|
View
|
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/animation/CompositorScrollOffsetAnimationCurve.cpp
|
View
|
2
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/CompositorFactory.h
|
View
|
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/CompositorFactory.cpp
|
View
|
2
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scroll/ScrollAnimator.h
|
View
|
1
2
3
4
5
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
|
View
|
1
2
3
4
5
|
4 chunks |
+44 lines, -15 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h
|
View
|
1
2
3
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/WebCompositorAnimationDelegate.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
Total messages: 30 (14 generated)
|