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

Issue 1128103003: Update setting of Compositor on new root Layer (Closed)

Created:
5 years, 7 months ago by jonross
Modified:
5 years, 7 months ago
Reviewers:
danakj
CC:
chromium-reviews, Ian Vollick, sievers+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_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

Update setting of Compositor on new root Layer When calling LayerOwner::RecreateLayer() on the root Layer, the Compositor gets moved to the new layer after all children are added. If there are ongoing animations while this occurs they are cancelled. If any animation observer attempts to access the compositor in response it will crash Chrome as the compositor is null. Update LayerOwner::RecreateLayer() to set the Compositor on the new root layer bfore adding children. This also brings it to the same timing as when the compositor would be set while performing RecreateLayer on non-root layers. TEST=LayerOwnerTestWithCompositor.RecreateRootLayerDuringAnimation, compositor_unittests, ash_unittests, views_unittests BUG=chrome-os-partner:40032 Committed: https://crrev.com/3a4071534bad6ed913581340d143bd687b2fe57f Cr-Commit-Position: refs/heads/master@{#329446}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Update tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -7 lines) Patch
M ui/compositor/layer_owner.cc View 2 chunks +5 lines, -7 lines 0 comments Download
M ui/compositor/layer_owner_unittest.cc View 1 3 chunks +87 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
jonross
Hi Dana, Could you provide a review of this change? I've updated LayerOwner::RecreateLayer to set ...
5 years, 7 months ago (2015-05-12 15:40:41 UTC) #3
danakj
LGTM https://codereview.chromium.org/1128103003/diff/20001/ui/compositor/layer_owner_unittest.cc File ui/compositor/layer_owner_unittest.cc (right): https://codereview.chromium.org/1128103003/diff/20001/ui/compositor/layer_owner_unittest.cc#newcode132 ui/compositor/layer_owner_unittest.cc:132: TEST_F(LayerOwnerTestWithCompositor, RecreateRootLayerDuringAnimation) { Would you mind adding a ...
5 years, 7 months ago (2015-05-12 16:57:40 UTC) #4
jonross
https://codereview.chromium.org/1128103003/diff/20001/ui/compositor/layer_owner_unittest.cc File ui/compositor/layer_owner_unittest.cc (right): https://codereview.chromium.org/1128103003/diff/20001/ui/compositor/layer_owner_unittest.cc#newcode132 ui/compositor/layer_owner_unittest.cc:132: TEST_F(LayerOwnerTestWithCompositor, RecreateRootLayerDuringAnimation) { On 2015/05/12 16:57:40, danakj wrote: > ...
5 years, 7 months ago (2015-05-12 17:26:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1128103003/40001
5 years, 7 months ago (2015-05-12 17:26:59 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 7 months ago (2015-05-12 18:18:49 UTC) #9
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 18:19:39 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3a4071534bad6ed913581340d143bd687b2fe57f
Cr-Commit-Position: refs/heads/master@{#329446}

Powered by Google App Engine
This is Rietveld 408576698