Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Issue 11598005: Ref count layer animation controllers. (Closed)

Created:
8 years ago by Ian Vollick
Modified:
8 years ago
Reviewers:
jamesr, nduca, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Ref count layer animation controllers. With this patch we accomplish the following: 1. layer animation controllers are ref counted (so they can be shared by the two impl trees) 2. the layer tree hosts now own a list of active animation controllers. This allows for a couple of nice things __a. Ticking the animation controllers no longer requires a tree walk __b. We will be able to support ticking of animation controllers for layers that are not yet added to the layer tree. (Support coming in a future patch). 3. animation controllers register and unregister themselves from their respective layer tree host's list when they have an animation to tick. [email protected],[email protected] BUG=162111 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174043

Patch Set 1 : . #

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+530 lines, -381 lines) Patch
A cc/animation_registrar.h View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
A cc/animation_registrar.cc View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M cc/layer.h View 1 2 3 8 chunks +18 lines, -17 lines 0 comments Download
M cc/layer.cc View 1 2 3 4 12 chunks +38 lines, -38 lines 0 comments Download
M cc/layer_animation_controller.h View 1 2 3 4 5 chunks +35 lines, -18 lines 0 comments Download
M cc/layer_animation_controller.cc View 1 2 3 13 chunks +73 lines, -13 lines 0 comments Download
M cc/layer_animation_controller_unittest.cc View 1 2 18 chunks +69 lines, -60 lines 0 comments Download
A + cc/layer_animation_event_observer.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
D cc/layer_animation_observer.h View 1 2 1 chunk +0 lines, -18 lines 0 comments Download
A cc/layer_animation_value_observer.h View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M cc/layer_impl.h View 1 2 3 6 chunks +10 lines, -8 lines 0 comments Download
M cc/layer_impl.cc View 1 2 6 chunks +17 lines, -13 lines 0 comments Download
M cc/layer_tree_host.h View 1 2 5 chunks +5 lines, -2 lines 0 comments Download
M cc/layer_tree_host.cc View 1 2 7 chunks +14 lines, -33 lines 0 comments Download
M cc/layer_tree_host_common_unittest.cc View 1 2 chunks +13 lines, -13 lines 0 comments Download
M cc/layer_tree_host_impl.h View 1 2 3 6 chunks +8 lines, -5 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 7 chunks +19 lines, -42 lines 0 comments Download
M cc/layer_tree_host_unittest_animation.cc View 1 2 3 4 5 chunks +32 lines, -28 lines 0 comments Download
M cc/layer_tree_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layer_tree_impl.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M cc/proxy.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M cc/single_thread_proxy.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/single_thread_proxy.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M cc/test/animation_test_common.h View 1 2 2 chunks +11 lines, -10 lines 0 comments Download
M cc/test/animation_test_common.cc View 1 2 3 1 chunk +4 lines, -19 lines 0 comments Download
M cc/test/fake_proxy.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/layer_tree_test_common.h View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M cc/test/layer_tree_test_common.cc View 1 2 3 4 5 chunks +10 lines, -20 lines 0 comments Download
M cc/thread_proxy.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M cc/tree_synchronizer_unittest.cc View 2 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Ian Vollick
8 years ago (2012-12-17 03:36:36 UTC) #1
enne (OOO)
https://codereview.chromium.org/11598005/diff/7001/cc/animation_registrar.h File cc/animation_registrar.h (right): https://codereview.chromium.org/11598005/diff/7001/cc/animation_registrar.h#newcode19 cc/animation_registrar.h:19: virtual scoped_refptr<LayerAnimationController> GetAnimationControllerForId(int id) = 0; 80 columns /o\ ...
8 years ago (2012-12-17 20:21:22 UTC) #2
Ian Vollick
On 2012/12/17 20:21:22, enne wrote: > https://codereview.chromium.org/11598005/diff/7001/cc/animation_registrar.h > File cc/animation_registrar.h (right): > > https://codereview.chromium.org/11598005/diff/7001/cc/animation_registrar.h#newcode19 > ...
8 years ago (2012-12-17 20:55:43 UTC) #3
enne (OOO)
It seems like Layer::addAnimation is already calling setNeedsCommit, so I'm a little confused why LayerTreeHost::DidActivateAnimationController ...
8 years ago (2012-12-17 21:13:42 UTC) #4
Ian Vollick
On 2012/12/17 21:13:42, enne wrote: > It seems like Layer::addAnimation is already calling setNeedsCommit, so ...
8 years ago (2012-12-18 04:42:30 UTC) #5
nduca
lgtm
8 years ago (2012-12-19 01:23:32 UTC) #6
enne (OOO)
Ack, sorry to let this slip by all day. I still have my original question ...
8 years ago (2012-12-19 01:50:49 UTC) #7
Ian Vollick
On 2012/12/19 01:50:49, enne wrote: > Ack, sorry to let this slip by all day. ...
8 years ago (2012-12-19 03:10:20 UTC) #8
enne (OOO)
On 2012/12/19 03:10:20, vollick wrote: > On 2012/12/19 01:50:49, enne wrote: > > Ack, sorry ...
8 years ago (2012-12-19 04:23:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11598005/19002
8 years ago (2012-12-19 15:22:00 UTC) #10
commit-bot: I haz the power
Failed to apply patch for cc/layer_tree_host_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-12-19 15:22:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11598005/32001
8 years ago (2012-12-19 21:55:35 UTC) #12
commit-bot: I haz the power
8 years ago (2012-12-20 00:11:36 UTC) #13
Message was sent while issue was closed.
Change committed as 174043

Powered by Google App Engine
This is Rietveld 408576698