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

Issue 1101823002: CC Animations: Make LayerAnimationController creation optional (Closed)

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

Description

CC Animations: Make LayerAnimationController creation optional Don't call SetAnimationRegistrar directly - make RegisterForAnimations explicit. Previous episodes: https://codereview.chromium.org/1122393003/ https://codereview.chromium.org/1159633002/ This is a prerequisite to implement compositor animation timelines. Next episode: https://codereview.chromium.org/947033002/ BUG=394777 R=ajuma@chromium.org R=vollick@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/5719778b3aa0a3acbc8202f8c689b6a25d0372c0 Cr-Commit-Position: refs/heads/master@{#331739}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address code review issues. Fix tests. #

Patch Set 3 : Clean up. #

Total comments: 4

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

Total comments: 4

Patch Set 5 : Fix ThreadedLayerAnimationElement logic. #

Patch Set 6 : Clean up. Rebase. #

Total comments: 10

Patch Set 7 : Address observers attach/detach. #

Total comments: 6

Patch Set 8 : Use per-process global variable to create LAC #

Total comments: 6

Patch Set 9 : Plumb LayerSettings parameter for cc::Layer construction. #

Total comments: 5

Patch Set 10 : Rebase on top of extracted changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -14 lines) Patch
M cc/blink/web_layer_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 9 6 chunks +22 lines, -8 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M components/html_viewer/web_layer_tree_view_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 65 (9 generated)
loyso (OOO)
5 years, 8 months ago (2015-04-23 07:51:20 UTC) #3
loyso (OOO)
https://codereview.chromium.org/1101823002/diff/1/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1101823002/diff/1/cc/layers/layer.cc#newcode1240 cc/layers/layer.cc:1240: DCHECK(layer_animation_controller_); webkit_unit_tests are failing. I'm considering to accumulate all ...
5 years, 8 months ago (2015-04-23 08:26:34 UTC) #4
ajuma
https://codereview.chromium.org/1101823002/diff/1/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1101823002/diff/1/cc/layers/layer.cc#newcode1240 cc/layers/layer.cc:1240: DCHECK(layer_animation_controller_); On 2015/04/23 08:26:33, loyso wrote: > webkit_unit_tests are ...
5 years, 8 months ago (2015-04-23 15:09:16 UTC) #5
loyso (OOO)
https://codereview.chromium.org/1101823002/diff/1/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1101823002/diff/1/cc/layers/layer.cc#newcode1240 cc/layers/layer.cc:1240: DCHECK(layer_animation_controller_); On 2015/04/23 15:09:15, ajuma wrote: > On 2015/04/23 ...
5 years, 8 months ago (2015-04-24 03:44:53 UTC) #6
ajuma
https://codereview.chromium.org/1101823002/diff/40001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1101823002/diff/40001/ui/compositor/layer.cc#newcode156 ui/compositor/layer.cc:156: SendPendingThreadedAnimations(); This needs to happen after the cc layers ...
5 years, 8 months ago (2015-04-24 16:02:16 UTC) #7
loyso (OOO)
https://codereview.chromium.org/1101823002/diff/40001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1101823002/diff/40001/ui/compositor/layer.cc#newcode156 ui/compositor/layer.cc:156: SendPendingThreadedAnimations(); On 2015/04/24 16:02:16, ajuma wrote: > This needs ...
5 years, 8 months ago (2015-04-27 06:34:09 UTC) #8
ajuma
Some of the test failures look real. In particular, there are crashes involving removing animations ...
5 years, 8 months ago (2015-04-27 14:51:56 UTC) #9
loyso (OOO)
https://codereview.chromium.org/1101823002/diff/60001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1101823002/diff/60001/ui/compositor/layer.cc#newcode1064 ui/compositor/layer.cc:1064: if (cc_layer_->layer_animation_controller()) On 2015/04/27 14:51:56, ajuma wrote: > It's ...
5 years, 8 months ago (2015-04-28 05:10:36 UTC) #10
loyso (OOO)
https://codereview.chromium.org/1101823002/diff/60001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1101823002/diff/60001/ui/compositor/layer.cc#newcode1064 ui/compositor/layer.cc:1064: if (cc_layer_->layer_animation_controller()) On 2015/04/27 14:51:56, ajuma wrote: > It's ...
5 years, 8 months ago (2015-04-28 05:23:13 UTC) #11
ajuma
lgtm. Thanks for the fixes to ThreadedLayerAnimationElement! https://codereview.chromium.org/1101823002/diff/60001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1101823002/diff/60001/ui/compositor/layer.cc#newcode1064 ui/compositor/layer.cc:1064: if (cc_layer_->layer_animation_controller()) ...
5 years, 7 months ago (2015-04-28 14:36:05 UTC) #12
Ian Vollick
On 2015/04/28 14:36:05, ajuma wrote: > lgtm. Thanks for the fixes to ThreadedLayerAnimationElement! > > ...
5 years, 7 months ago (2015-04-29 00:37:53 UTC) #14
piman
I'm concerned about adding a lot of recursion on tree operations. https://codereview.chromium.org/1101823002/diff/100001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): ...
5 years, 7 months ago (2015-04-29 00:46:11 UTC) #15
loyso (OOO)
https://codereview.chromium.org/1101823002/diff/100001/ui/compositor/layer_animation_element.cc File ui/compositor/layer_animation_element.cc (right): https://codereview.chromium.org/1101823002/diff/100001/ui/compositor/layer_animation_element.cc#newcode343 ui/compositor/layer_animation_element.cc:343: if (Started() && IsThreaded()) { On 2015/04/29 00:46:11, piman ...
5 years, 7 months ago (2015-04-29 01:30:39 UTC) #16
Ken Russell (switch to Gerrit)
I defer review of content/renderer/gpu/ to piman.
5 years, 7 months ago (2015-04-29 01:48:32 UTC) #17
piman
On Tue, Apr 28, 2015 at 6:30 PM, <loyso@chromium.org> wrote: > > > https://codereview.chromium.org/1101823002/diff/100001/ui/compositor/layer_animation_element.cc > ...
5 years, 7 months ago (2015-04-29 02:08:38 UTC) #18
loyso (OOO)
On 2015/04/29 02:08:38, piman (Very slow to review) wrote: > > Apart from that, IsThreaded ...
5 years, 7 months ago (2015-04-29 02:53:49 UTC) #19
loyso (OOO)
On 2015/04/29 02:08:38, piman (Very slow to review) wrote: > > Apart from that, IsThreaded ...
5 years, 7 months ago (2015-04-29 03:25:29 UTC) #20
loyso (OOO)
https://codereview.chromium.org/1101823002/diff/100001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1101823002/diff/100001/ui/compositor/layer.cc#newcode161 ui/compositor/layer.cc:161: // This function must only be called on the ...
5 years, 7 months ago (2015-04-29 03:49:33 UTC) #21
piman
On Tue, Apr 28, 2015 at 7:53 PM, <loyso@chromium.org> wrote: > On 2015/04/29 02:08:38, piman ...
5 years, 7 months ago (2015-04-29 03:53:40 UTC) #22
piman
On Tue, Apr 28, 2015 at 8:49 PM, <loyso@chromium.org> wrote: > > > https://codereview.chromium.org/1101823002/diff/100001/ui/compositor/layer.cc > ...
5 years, 7 months ago (2015-04-29 04:08:15 UTC) #23
loyso (OOO)
https://codereview.chromium.org/1101823002/diff/100001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1101823002/diff/100001/ui/compositor/layer.cc#newcode513 ui/compositor/layer.cc:513: DetachAnimationObservers(); On 2015/04/29 00:46:11, piman (Very slow to review) ...
5 years, 7 months ago (2015-04-29 08:15:02 UTC) #24
piman
https://codereview.chromium.org/1101823002/diff/120001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1101823002/diff/120001/ui/compositor/layer.cc#newcode1023 ui/compositor/layer.cc:1023: DCHECK(cc_layer_->layer_animation_controller()); Is this DCHECK valid? SendPendingThreadedAnimations is called any ...
5 years, 7 months ago (2015-04-30 00:40:38 UTC) #25
loyso (OOO)
https://codereview.chromium.org/1101823002/diff/120001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1101823002/diff/120001/ui/compositor/layer.cc#newcode1023 ui/compositor/layer.cc:1023: DCHECK(cc_layer_->layer_animation_controller()); On 2015/04/30 00:40:38, piman (Very slow to review) ...
5 years, 7 months ago (2015-04-30 01:03:04 UTC) #26
loyso (OOO)
https://codereview.chromium.org/1101823002/diff/120001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1101823002/diff/120001/ui/compositor/layer.cc#newcode1023 ui/compositor/layer.cc:1023: DCHECK(cc_layer_->layer_animation_controller()); On 2015/04/30 01:03:04, loyso wrote: > On 2015/04/30 ...
5 years, 7 months ago (2015-04-30 01:04:03 UTC) #27
loyso (OOO)
https://codereview.chromium.org/1101823002/diff/120001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1101823002/diff/120001/ui/compositor/layer.cc#newcode1024 ui/compositor/layer.cc:1024: cc_layer_->AddLayerAnimationEventObserver(this); On 2015/04/30 00:40:38, piman (Very slow to review) ...
5 years, 7 months ago (2015-05-01 03:46:21 UTC) #28
piman
I think I'm starting to get my head around this, but, my main question is ...
5 years, 7 months ago (2015-05-01 19:25:13 UTC) #29
loyso (OOO)
On 2015/05/01 19:25:13, piman (Very slow to review) wrote: > I think I'm starting to ...
5 years, 7 months ago (2015-05-04 01:02:14 UTC) #30
piman
On Sun, May 3, 2015 at 6:02 PM, <loyso@chromium.org> wrote: > On 2015/05/01 19:25:13, piman ...
5 years, 7 months ago (2015-05-04 23:58:44 UTC) #31
loyso (OOO)
On 2015/05/04 23:58:44, piman (Very slow to review) wrote: > Do we have a guarantee ...
5 years, 7 months ago (2015-05-05 04:16:58 UTC) #32
loyso (OOO)
p.s. I could accumulate all observers/delegates in cc::Layer and pass them to LAC on its ...
5 years, 7 months ago (2015-05-05 04:32:39 UTC) #33
piman
On Mon, May 4, 2015 at 9:16 PM, <loyso@chromium.org> wrote: > On 2015/05/04 23:58:44, piman ...
5 years, 7 months ago (2015-05-05 18:10:28 UTC) #34
jamesr
The blink registration mechanism is an extremely ugly (I can say that since I created ...
5 years, 7 months ago (2015-05-05 18:28:46 UTC) #36
loyso (OOO)
On 2015/05/05 18:28:46, jamesr wrote: > The blink registration mechanism is an extremely ugly Yeah, ...
5 years, 7 months ago (2015-05-06 03:04:39 UTC) #37
loyso (OOO)
On 2015/05/05 18:10:28, piman (Very slow to review) wrote: > In all honesty, that's craziness ...
5 years, 7 months ago (2015-05-06 03:26:25 UTC) #38
piman
Overall, I think this is much much simpler and clearer. I suggested passing the bool ...
5 years, 7 months ago (2015-05-06 18:58:15 UTC) #39
loyso (OOO)
On 2015/05/06 18:58:15, piman (Very slow to review) wrote: > I suggested passing the bool ...
5 years, 7 months ago (2015-05-07 02:06:51 UTC) #40
loyso (OOO)
Unrelated: it is maybe sad that we have ::Create factory methods everywhere but we don't ...
5 years, 7 months ago (2015-05-07 02:13:15 UTC) #41
piman
On Wed, May 6, 2015 at 7:06 PM, <loyso@chromium.org> wrote: > On 2015/05/06 18:58:15, piman ...
5 years, 7 months ago (2015-05-07 03:03:00 UTC) #42
loyso (OOO)
A 'big-picture' context: What we want to achieve as a result for this series of ...
5 years, 7 months ago (2015-05-07 06:38:48 UTC) #43
loyso (OOO)
http://crrev.com/1131833002 Blink: Torpedo the old intrusive animation system. [DEMO, not for review] http://crrev.com/1130043003 CC: Torpedo ...
5 years, 7 months ago (2015-05-07 06:39:19 UTC) #44
piman
On Wed, May 6, 2015 at 11:38 PM, <loyso@chromium.org> wrote: > A 'big-picture' context: > ...
5 years, 7 months ago (2015-05-07 22:35:25 UTC) #45
danakj
Since this has to work for Orphan layers I can see that LayerTreeSettings isn't going ...
5 years, 7 months ago (2015-05-08 18:21:41 UTC) #47
loyso (OOO)
On 2015/05/08 18:21:41, danakj wrote: > Since this has to work for Orphan layers I ...
5 years, 7 months ago (2015-05-11 06:59:14 UTC) #48
loyso (OOO)
https://codereview.chromium.org/1101823002/diff/140001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/1101823002/diff/140001/cc/layers/layer.cc#newcode145 cc/layers/layer.cc:145: RegisterForAnimations(host->animation_registrar(), host->settings()); On 2015/05/08 18:21:40, danakj wrote: > if ...
5 years, 7 months ago (2015-05-11 06:59:43 UTC) #49
loyso (OOO)
On 2015/05/07 03:03:00, piman (Very slow to review) wrote: > > I suggested passing the ...
5 years, 7 months ago (2015-05-11 07:01:31 UTC) #50
piman
I would suggest moving the introduction of LayerSettings into a separate patch. It's always better ...
5 years, 7 months ago (2015-05-11 21:31:24 UTC) #51
danakj
On 2015/05/07 03:03:00, piman (Very slow to review) wrote: > On Wed, May 6, 2015 ...
5 years, 7 months ago (2015-05-11 21:58:06 UTC) #52
loyso (OOO)
On 2015/05/11 21:31:24, piman (Very slow to review) wrote: > I would suggest moving the ...
5 years, 7 months ago (2015-05-12 04:29:32 UTC) #53
loyso (OOO)
piman (Very slow to review) wrote: > Lastly, I think the changes in ui/compositor are ...
5 years, 7 months ago (2015-05-25 06:42:51 UTC) #55
loyso (OOO)
sky@chromium.org: Please review changes in
5 years, 7 months ago (2015-05-25 06:58:53 UTC) #57
piman
LGTM for content/
5 years, 7 months ago (2015-05-26 16:45:24 UTC) #58
Ian Vollick
On 2015/05/26 at 16:45:24, piman wrote: > LGTM for content/ lgtm.
5 years, 7 months ago (2015-05-27 01:37:28 UTC) #59
sky
LGTM
5 years, 7 months ago (2015-05-28 02:59:56 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1101823002/180001
5 years, 7 months ago (2015-05-28 03:03:54 UTC) #63
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 7 months ago (2015-05-28 04:10:34 UTC) #64
commit-bot: I haz the power
5 years, 7 months ago (2015-05-28 04:11:13 UTC) #65
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/5719778b3aa0a3acbc8202f8c689b6a25d0372c0
Cr-Commit-Position: refs/heads/master@{#331739}

Powered by Google App Engine
This is Rietveld 408576698