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

Issue 2335043002: CC Animation: Move animations_ from ElementAnimations to AnimationPlayer. (Closed)

Created:
4 years, 3 months ago by loyso (OOO)
Modified:
4 years, 3 months ago
Reviewers:
Ian Vollick, ajuma
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, piman+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, darktears, blink-reviews, kalyank, cc-bugs_chromium.org, danakj+watch_chromium.org, Eric Willigers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CC Animation: Move animations_ from ElementAnimations to AnimationPlayer. - Also move all accompanying methods. - We don't have a notion of pending animations anymore. As a result, we will get many (*:1 relationship) collections of animations for each element (animation's target). This a part of the plan to make ElementAnimations a hidden and passive entity (not presented in API and unit tests). Next steps (separate CLs): - Shouldn't manually iterate through the list if base::ObserverList (http://crbug.com/634916) - Rework all UpdateClientAnimationState callers to use bitset. - Remove AnimationPlayer::animations() getter - Change activation to be on a per-player basis (so AnimationHost works with a list of active AnimationPlayers rather than ElementAnimations) - CompositorPlayer::addAnimation should consume unique_ptr. BUG=592873 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/db00688793f63e1f3ccd71f883ec3129bd169abe Cr-Commit-Position: refs/heads/master@{#418439}

Patch Set 1 #

Patch Set 2 : Clean it up. #

Patch Set 3 : Clean it up harder. Rework UpdateClientAnimationState. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+1562 lines, -1214 lines) Patch
M cc/animation/animation_player.h View 1 6 chunks +96 lines, -19 lines 0 comments Download
M cc/animation/animation_player.cc View 1 2 5 chunks +958 lines, -69 lines 0 comments Download
M cc/animation/element_animations.h View 1 2 6 chunks +26 lines, -56 lines 4 comments Download
M cc/animation/element_animations.cc View 1 2 15 chunks +295 lines, -931 lines 0 comments Download
M cc/animation/element_animations_unittest.cc View 64 chunks +108 lines, -89 lines 0 comments Download
M cc/test/animation_timelines_test_common.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/animation_timelines_test_common.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 6 chunks +36 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/platform/animation/CompositorAnimationPlayerTest.cpp View 3 chunks +21 lines, -3 lines 0 comments Download
M ui/compositor/layer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/compositor/layer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/compositor/layer_animator.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/compositor/layer_animator.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 2 chunks +16 lines, -13 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (21 generated)
loyso (OOO)
ajuma@, cc/ please! vollick@, ui/compositor/ please!
4 years, 3 months ago (2016-09-13 07:43:51 UTC) #17
ajuma
lgtm https://codereview.chromium.org/2335043002/diff/40001/cc/animation/element_animations.h File cc/animation/element_animations.h (right): https://codereview.chromium.org/2335043002/diff/40001/cc/animation/element_animations.h#newcode183 cc/animation/element_animations.h:183: // TODO(loyso): Rework UpdateClientAnimationState to use bitset. Agreed. ...
4 years, 3 months ago (2016-09-13 17:19:16 UTC) #20
Ian Vollick
On 2016/09/13 17:19:16, ajuma wrote: > lgtm > > https://codereview.chromium.org/2335043002/diff/40001/cc/animation/element_animations.h > File cc/animation/element_animations.h (right): > ...
4 years, 3 months ago (2016-09-13 17:20:27 UTC) #21
loyso (OOO)
https://codereview.chromium.org/2335043002/diff/40001/cc/animation/element_animations.h File cc/animation/element_animations.h (right): https://codereview.chromium.org/2335043002/diff/40001/cc/animation/element_animations.h#newcode183 cc/animation/element_animations.h:183: // TODO(loyso): Rework UpdateClientAnimationState to use bitset. On 2016/09/13 ...
4 years, 3 months ago (2016-09-14 00:20:07 UTC) #22
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/2335043002/40001
4 years, 3 months ago (2016-09-14 00:25:56 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-14 00:32:10 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 00:33:47 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/db00688793f63e1f3ccd71f883ec3129bd169abe
Cr-Commit-Position: refs/heads/master@{#418439}

Powered by Google App Engine
This is Rietveld 408576698