diff options
author | loyso <loyso@chromium.org> | 2015-07-02 17:19:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-03 00:20:31 +0000 |
commit | bb93befc1182673b6b884803fbffe3c956c4b6ee (patch) | |
tree | 6039e2bf298d6f69edfb918bc4a4c1b70bb316e5 /cc/BUILD.gn | |
parent | e55b5063c6811c177b3297265d68ee7cc074ec47 (diff) | |
download | chromium_src-bb93befc1182673b6b884803fbffe3c956c4b6ee.zip chromium_src-bb93befc1182673b6b884803fbffe3c956c4b6ee.tar.gz chromium_src-bb93befc1182673b6b884803fbffe3c956c4b6ee.tar.bz2 |
CC Animations: Establish AnimationHost, AnimationTimeline and AnimationPlayer.
The compositor should not need to worry about servicing animations.
Instead, it should be able to request property updates as needed from external
mutators.
- We setup CC representations for blink::AnimationPlayer and blink::AnimationTimeline.
- We want to move all the animation-related code from LayerTreeHost to AnimationHost.
- We move LayerAnimatedController ownership to cc::AnimationPlayer.
- We move AnimationRegistrar ownership to cc::AnimationHost.
- We add/remove animations to cc::AnimationPlayer from now.
- LayerAnimatedController to be merged into cc::AnimaitonPlayer.
- AnimationRegistrar to be merged into cc::AnimationHost/cc::AnimationTimeline.
A chromium part. Blink part: https://codereview.chromium.org/946323002
Next episode:
https://codereview.chromium.org/1010663002/
BUG=394777
R=dstockwell@chromium.org
R=shane@chromium.org
R=ajuma@chromium.org
R=vollick@chromium.org
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/947033002
Cr-Commit-Position: refs/heads/master@{#337266}
Diffstat (limited to 'cc/BUILD.gn')
-rw-r--r-- | cc/BUILD.gn | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cc/BUILD.gn b/cc/BUILD.gn index de54f0d..2d640ea 100644 --- a/cc/BUILD.gn +++ b/cc/BUILD.gn @@ -13,10 +13,18 @@ component("cc") { "animation/animation_delegate.h", "animation/animation_events.cc", "animation/animation_events.h", + "animation/animation_host.cc", + "animation/animation_host.h", "animation/animation_id_provider.cc", "animation/animation_id_provider.h", + "animation/animation_player.cc", + "animation/animation_player.h", "animation/animation_registrar.cc", "animation/animation_registrar.h", + "animation/animation_timeline.cc", + "animation/animation_timeline.h", + "animation/element_animations.cc", + "animation/element_animations.h", "animation/keyframed_animation_curve.cc", "animation/keyframed_animation_curve.h", "animation/layer_animation_controller.cc", @@ -472,6 +480,7 @@ component("cc") { "trees/layer_tree_impl.h", "trees/layer_tree_settings.cc", "trees/layer_tree_settings.h", + "trees/mutator_host_client.h", "trees/occlusion.cc", "trees/occlusion.h", "trees/occlusion_tracker.cc", @@ -529,6 +538,8 @@ source_set("test_support") { sources = [ "test/animation_test_common.cc", "test/animation_test_common.h", + "test/animation_timelines_test_common.cc", + "test/animation_timelines_test_common.h", "test/begin_frame_args_test.cc", "test/begin_frame_args_test.h", "test/failure_output_surface.cc", @@ -686,7 +697,11 @@ source_set("test_support") { test("cc_unittests") { sources = [ + "animation/animation_host_unittest.cc", + "animation/animation_player_unittest.cc", + "animation/animation_timeline_unittest.cc", "animation/animation_unittest.cc", + "animation/element_animations_unittest.cc", "animation/keyframed_animation_curve_unittest.cc", "animation/layer_animation_controller_unittest.cc", "animation/scroll_offset_animation_curve_unittest.cc", |