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

Issue 11443004: Maintain global lists of animation controllers (Closed)

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

Description

Maintain global lists of animation controllers This cl is an analog to https://codereview.chromium.org/11348256/, but rather than storing the collections of animation controllers on the layer tree hosts, we instead use global collections. BUG=162111

Patch Set 1 : . #

Total comments: 1

Patch Set 2 : . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+435 lines, -433 lines) Patch
A cc/animation_registrar.h View 1 1 chunk +58 lines, -0 lines 1 comment Download
A cc/animation_registrar.cc View 1 1 chunk +94 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layer.h View 7 chunks +7 lines, -15 lines 0 comments Download
M cc/layer.cc View 12 chunks +28 lines, -48 lines 0 comments Download
M cc/layer_animation_controller.h View 1 4 chunks +35 lines, -18 lines 0 comments Download
M cc/layer_animation_controller.cc View 1 13 chunks +52 lines, -17 lines 0 comments Download
M cc/layer_animation_controller_unittest.cc View 24 chunks +79 lines, -113 lines 0 comments Download
M cc/layer_impl.h View 7 chunks +6 lines, -11 lines 0 comments Download
M cc/layer_impl.cc View 7 chunks +20 lines, -28 lines 0 comments Download
M cc/layer_tree_host.h View 2 chunks +1 line, -2 lines 0 comments Download
M cc/layer_tree_host.cc View 5 chunks +7 lines, -33 lines 0 comments Download
M cc/layer_tree_host_common_unittest.cc View 2 chunks +13 lines, -13 lines 0 comments Download
M cc/layer_tree_host_impl.h View 3 chunks +2 lines, -4 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 7 chunks +18 lines, -40 lines 0 comments Download
M cc/proxy.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/single_thread_proxy.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/single_thread_proxy.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/test/animation_test_common.h View 1 chunk +0 lines, -17 lines 0 comments Download
M cc/test/animation_test_common.cc View 1 chunk +0 lines, -34 lines 0 comments Download
M cc/test/fake_proxy.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/layer_tree_test_common.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/layer_tree_test_common.cc View 4 chunks +5 lines, -22 lines 0 comments Download
M cc/thread_proxy.h View 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: 6 (0 generated)
Ian Vollick
8 years ago (2012-12-05 02:13:36 UTC) #1
jamesr
https://codereview.chromium.org/11443004/diff/1015/cc/animation_registrar.cc File cc/animation_registrar.cc (right): https://codereview.chromium.org/11443004/diff/1015/cc/animation_registrar.cc#newcode29 cc/animation_registrar.cc:29: static AnimationRegistrarMap* s_registrar_map = 0; in some situations we'll ...
8 years ago (2012-12-05 02:25:49 UTC) #2
nduca
Seems like the other approach is better then. I was mainly just saying this: have ...
8 years ago (2012-12-05 02:45:02 UTC) #3
Ian Vollick
On 2012/12/05 02:25:49, jamesr wrote: > https://codereview.chromium.org/11443004/diff/1015/cc/animation_registrar.cc > File cc/animation_registrar.cc (right): > > https://codereview.chromium.org/11443004/diff/1015/cc/animation_registrar.cc#newcode29 > ...
8 years ago (2012-12-05 15:08:22 UTC) #4
Ian Vollick
On 2012/12/05 02:45:02, nduca wrote: > Seems like the other approach is better then. I ...
8 years ago (2012-12-05 15:09:38 UTC) #5
jamesr
8 years ago (2012-12-05 19:19:29 UTC) #6
This isn't any more threadsafe than the last patch when there are multiple users
of the compositor from different 'main' threads, unless I'm missing something. 
Do you really need statics?

https://codereview.chromium.org/11443004/diff/6002/cc/animation_registrar.h
File cc/animation_registrar.h (right):

https://codereview.chromium.org/11443004/diff/6002/cc/animation_registrar.h#n...
cc/animation_registrar.h:12: class LayerAnimationController;
no indent here

Powered by Google App Engine
This is Rietveld 408576698