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

Issue 1010663002: CC Animations: Redirect all compositor animation requests to AnimationHost. (Closed)

Created:
5 years, 9 months ago by loyso (OOO)
Modified:
5 years, 5 months ago
Reviewers:
Ian Vollick, ajuma
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, aelias_OOO_until_Jul13
Base URL:
https://chromium.googlesource.com/chromium/src.git@introduce
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CC Animations: Redirect all compositor animation requests to AnimationHost. 1) Use AnimationHost's AnimationRegistrar instance if new system enabled. 2) Use AnimationPlayer's LayerAnimationController instance if new system enabled. Previous episode: https://codereview.chromium.org/947033002/ Next episode: https://codereview.chromium.org/1009233002/ In general: The compositor should not need to worry about servicing animations. A step towards AnimationHost/AnimationPlayer/AnimationTimeline decoupling. BUG=394777 R=ajuma@chromium.org R=vollick@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/d71ece8b808e33c65ff26e898bf4868f448b6bfc Cr-Commit-Position: refs/heads/master@{#337309}

Patch Set 1 #

Patch Set 2 : Share LayerAnimationControllers between AnimationPlayers. #

Patch Set 3 : Rearrange changes across episodes. #

Patch Set 4 : Cleanup #

Patch Set 5 : Use AnimationHost. #

Patch Set 6 : Clean up. #

Patch Set 7 : Start implementing unittests. #

Patch Set 8 : Add ported unittests. #

Total comments: 10

Patch Set 9 : Rebase and fix conflicts (HasPotentiallyRunningTransformAnimation) #

Patch Set 10 : Rebase. #

Patch Set 11 : Fix code review issues. Rebase. #

Patch Set 12 : Rebase. #

Patch Set 13 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1543 lines, -88 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M cc/animation/animation_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +47 lines, -0 lines 0 comments Download
M cc/animation/animation_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +176 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -2 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +69 lines, -10 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +15 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +122 lines, -14 lines 0 comments Download
M cc/layers/layer_utils.cc View 2 chunks +5 lines, -9 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +10 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +43 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +86 lines, -14 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +46 lines, -14 lines 0 comments Download
A cc/trees/layer_tree_host_unittest_animation_timelines.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +745 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +27 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +128 lines, -0 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +4 lines, -17 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
loyso (OOO)
5 years, 9 months ago (2015-03-24 02:25:00 UTC) #1
ajuma
I'd like to strongly reiterate a suggestion I made on a previous CL about porting/adding ...
5 years, 9 months ago (2015-03-24 13:27:51 UTC) #2
loyso (OOO)
5 years, 8 months ago (2015-04-21 07:37:40 UTC) #3
loyso (OOO)
5 years, 8 months ago (2015-04-21 07:38:44 UTC) #5
ajuma
Thanks for porting unit tests! Here are a few comments from a first pass through ...
5 years, 8 months ago (2015-04-21 17:57:57 UTC) #6
loyso (OOO)
https://codereview.chromium.org/1010663002/diff/140001/cc/animation/animation_host.cc File cc/animation/animation_host.cc (right): https://codereview.chromium.org/1010663002/diff/140001/cc/animation/animation_host.cc#newcode163 cc/animation/animation_host.cc:163: bool AnimationHost::GetSupportsScrollAnimations() const { On 2015/04/21 17:57:57, ajuma wrote: ...
5 years, 8 months ago (2015-04-22 01:08:11 UTC) #7
loyso (OOO)
https://codereview.chromium.org/1010663002/diff/140001/cc/animation/animation_host.cc File cc/animation/animation_host.cc (right): https://codereview.chromium.org/1010663002/diff/140001/cc/animation/animation_host.cc#newcode195 cc/animation/animation_host.cc:195: AnimationPlayer* player = GetPlayerForLayerId(layer_id); We have a hash look-up ...
5 years, 8 months ago (2015-04-22 01:27:30 UTC) #8
ajuma
https://codereview.chromium.org/1010663002/diff/140001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1010663002/diff/140001/cc/layers/layer.cc#newcode1274 cc/layers/layer.cc:1274: if (layer_animation_controller_) On 2015/04/22 01:08:11, loyso wrote: > On ...
5 years, 8 months ago (2015-04-22 14:36:37 UTC) #9
loyso (OOO)
https://codereview.chromium.org/1010663002/diff/140001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1010663002/diff/140001/cc/layers/layer.cc#newcode1274 cc/layers/layer.cc:1274: if (layer_animation_controller_) On 2015/04/22 14:36:37, ajuma wrote: > On ...
5 years, 8 months ago (2015-04-23 07:58:20 UTC) #10
loyso (OOO)
https://codereview.chromium.org/1010663002/diff/140001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1010663002/diff/140001/cc/layers/layer.cc#newcode1026 cc/layers/layer.cc:1026: layer_animation_controller_->scroll_offset_animation_was_interrupted()) On 2015/04/21 17:57:57, ajuma wrote: > This will ...
5 years, 7 months ago (2015-04-30 07:06:01 UTC) #11
loyso (OOO)
PTAL, everyone? This CL review may affect the previous episode (CL).
5 years, 6 months ago (2015-06-23 04:01:28 UTC) #13
ajuma
On 2015/06/23 04:01:28, loyso wrote: > PTAL, everyone? This CL review may affect the previous ...
5 years, 6 months ago (2015-06-23 14:46:17 UTC) #14
loyso (OOO)
--disable_threaded_animation mode isn't supported yet with --enable_compositor_animation_timelines. We need that runtime flag on the blink ...
5 years, 5 months ago (2015-07-03 04:53:20 UTC) #15
Ian Vollick
On 2015/07/03 04:53:20, loyso wrote: > --disable_threaded_animation mode isn't supported yet with > --enable_compositor_animation_timelines. > ...
5 years, 5 months ago (2015-07-03 13:44:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1010663002/240001
5 years, 5 months ago (2015-07-03 13:44:36 UTC) #19
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 5 months ago (2015-07-03 13:49:01 UTC) #20
commit-bot: I haz the power
5 years, 5 months ago (2015-07-03 13:50:06 UTC) #21
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/d71ece8b808e33c65ff26e898bf4868f448b6bfc
Cr-Commit-Position: refs/heads/master@{#337309}

Powered by Google App Engine
This is Rietveld 408576698