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

Issue 11348256: Use an auxiliary list of 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

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. BUG=162111 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171714

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : It builds. Unit tests are busted. #

Patch Set 4 : Unit tests pass! #

Total comments: 7

Patch Set 5 : . #

Patch Set 6 : Added registration/unregistration #

Total comments: 1

Patch Set 7 : . #

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+420 lines, -435 lines) Patch
A cc/animation_registrar.h View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M cc/layer.h View 1 2 3 4 5 6 7 chunks +7 lines, -15 lines 0 comments Download
M cc/layer.cc View 1 2 3 4 5 6 11 chunks +25 lines, -49 lines 0 comments Download
M cc/layer_animation_controller.h View 1 2 3 4 4 chunks +36 lines, -18 lines 0 comments Download
M cc/layer_animation_controller.cc View 1 2 3 4 5 6 13 chunks +70 lines, -17 lines 0 comments Download
M cc/layer_animation_controller_unittest.cc View 1 2 3 4 23 chunks +78 lines, -113 lines 0 comments Download
M cc/layer_impl.h View 1 2 3 4 5 6 7 chunks +6 lines, -11 lines 0 comments Download
M cc/layer_impl.cc View 1 2 3 4 5 6 6 chunks +20 lines, -28 lines 0 comments Download
M cc/layer_tree_host.h View 1 2 3 4 5 6 7 chunks +25 lines, -3 lines 0 comments Download
M cc/layer_tree_host.cc View 1 2 3 4 5 6 7 7 chunks +34 lines, -33 lines 0 comments Download
M cc/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 2 chunks +13 lines, -13 lines 0 comments Download
M cc/layer_tree_host_impl.h View 1 2 3 4 5 6 7 6 chunks +17 lines, -4 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 7 chunks +39 lines, -40 lines 0 comments Download
M cc/proxy.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M cc/single_thread_proxy.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M cc/single_thread_proxy.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M cc/test/animation_test_common.h View 1 2 1 chunk +0 lines, -17 lines 0 comments Download
M cc/test/animation_test_common.cc View 1 2 3 1 chunk +0 lines, -34 lines 0 comments Download
M cc/test/fake_proxy.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/layer_tree_test_common.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/layer_tree_test_common.cc View 1 2 3 4 5 6 4 chunks +6 lines, -22 lines 0 comments Download
M cc/thread_proxy.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M cc/tree_synchronizer_unittest.cc View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Ian Vollick
nduca, enne, I think this is starting to be pretty baked. The change seems to ...
8 years ago (2012-12-02 17:45:48 UTC) #1
nduca
Where'd you end up with jamesr on factory vs whatever-the-alternative-was?
8 years ago (2012-12-03 00:07:01 UTC) #2
Ian Vollick
On 2012/12/03 00:07:01, nduca wrote: > Where'd you end up with jamesr on factory vs ...
8 years ago (2012-12-03 02:43:37 UTC) #3
jamesr
https://codereview.chromium.org/11348256/diff/5001/cc/layer.cc File cc/layer.cc (right): https://codereview.chromium.org/11348256/diff/5001/cc/layer.cc#newcode367 cc/layer.cc:367: if (m_layerAnimationController->opacityLastUpdateTime() > m_opacityLastUpdateTime) could you explain what this ...
8 years ago (2012-12-03 04:40:15 UTC) #4
Ian Vollick
https://codereview.chromium.org/11348256/diff/5001/cc/layer.cc File cc/layer.cc (right): https://codereview.chromium.org/11348256/diff/5001/cc/layer.cc#newcode367 cc/layer.cc:367: if (m_layerAnimationController->opacityLastUpdateTime() > m_opacityLastUpdateTime) On 2012/12/03 04:40:15, jamesr wrote: ...
8 years ago (2012-12-03 14:47:03 UTC) #5
enne (OOO)
https://codereview.chromium.org/11348256/diff/5001/cc/layer.cc File cc/layer.cc (right): https://codereview.chromium.org/11348256/diff/5001/cc/layer.cc#newcode367 cc/layer.cc:367: if (m_layerAnimationController->opacityLastUpdateTime() > m_opacityLastUpdateTime) On 2012/12/03 14:47:03, vollick wrote: ...
8 years ago (2012-12-04 01:32:16 UTC) #6
nduca
monotonicallyIncreasingTime is actually a lie. Its monotonically non decreasing. meaning you can ask for it ...
8 years ago (2012-12-04 04:00:43 UTC) #7
nduca
how does a layer moving between trees work in this? https://codereview.chromium.org/11348256/diff/5001/cc/layer_tree_host.h File cc/layer_tree_host.h (right): https://codereview.chromium.org/11348256/diff/5001/cc/layer_tree_host.h#newcode245 ...
8 years ago (2012-12-04 05:40:26 UTC) #8
nduca
https://codereview.chromium.org/11348256/diff/5001/cc/layer_animation_controller.cc File cc/layer_animation_controller.cc (right): https://codereview.chromium.org/11348256/diff/5001/cc/layer_animation_controller.cc#newcode169 cc/layer_animation_controller.cc:169: return; Oh i get it nao. Thanks. Can we ...
8 years ago (2012-12-04 05:51:13 UTC) #9
Ian Vollick
https://codereview.chromium.org/11348256/diff/5001/cc/layer.cc File cc/layer.cc (right): https://codereview.chromium.org/11348256/diff/5001/cc/layer.cc#newcode367 cc/layer.cc:367: if (m_layerAnimationController->opacityLastUpdateTime() > m_opacityLastUpdateTime) On 2012/12/04 01:32:16, enne wrote: ...
8 years ago (2012-12-04 19:49:06 UTC) #10
enne (OOO)
What user of the API is calling setFoo when Foo is animating? Is this something ...
8 years ago (2012-12-04 22:27:07 UTC) #11
nduca
I get your point, but activation is orthogonal from which host a controller is associated ...
8 years ago (2012-12-04 22:29:04 UTC) #12
Ian Vollick
On 2012/12/04 22:27:07, enne wrote: > What user of the API is calling setFoo when ...
8 years ago (2012-12-05 02:14:31 UTC) #13
Ian Vollick
On 2012/12/04 22:29:04, nduca wrote: > I get your point, but activation is orthogonal from ...
8 years ago (2012-12-05 02:15:59 UTC) #14
Ian Vollick
On 2012/12/05 02:15:59, vollick wrote: > On 2012/12/04 22:29:04, nduca wrote: > > I get ...
8 years ago (2012-12-05 15:30:00 UTC) #15
nduca
I like this. Do you, Ian? https://codereview.chromium.org/11348256/diff/18001/cc/layer_tree_host.h File cc/layer_tree_host.h (right): https://codereview.chromium.org/11348256/diff/18001/cc/layer_tree_host.h#newcode261 cc/layer_tree_host.h:261: virtual void DeactivateAnimationController(LayerAnimationController*) ...
8 years ago (2012-12-05 20:15:56 UTC) #16
Ian Vollick
On 2012/12/05 20:15:56, nduca wrote: > I like this. Do you, Ian? Yup! > > ...
8 years ago (2012-12-06 00:33:22 UTC) #17
nduca
lgtm
8 years ago (2012-12-06 00:58:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/11348256/27019
8 years ago (2012-12-06 21:30:52 UTC) #19
commit-bot: I haz the power
Failed to apply patch for cc/layer_tree_host.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-12-06 21:31:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/11348256/37002
8 years ago (2012-12-07 00:25:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/11348256/36026
8 years ago (2012-12-07 00:31:27 UTC) #22
commit-bot: I haz the power
8 years ago (2012-12-07 07:37:13 UTC) #23
Message was sent while issue was closed.
Change committed as 171714

Powered by Google App Engine
This is Rietveld 408576698