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

Issue 983933002: Reset the root layer on the compositor when recreating a root layer. (Closed)

Created:
5 years, 9 months ago by bruthig
Modified:
5 years, 9 months ago
Reviewers:
danakj, Lei Zhang, sadrul
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

Reset the root layer on the compositor when recreating a root layer. This is going to be used by https://codereview.chromium.org/975943002/ TEST=LayerOwnerTest.RecreateRootLayerWithNullCompositor TEST=LayerOwnerTest.RecreateRootLayerWithCompositor BUG=337596 Committed: https://crrev.com/26d2ed6065c28b46c56a1266a6c7e28c9db55d45 Cr-Commit-Position: refs/heads/master@{#319487}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Optimized 'is root layer' check. #

Total comments: 2

Patch Set 3 : Added a test expectation that the compositor's root_layer is updated correctly during RecreateLayer. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -0 lines) Patch
M ui/compositor/layer_owner.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M ui/compositor/layer_owner_unittest.cc View 1 2 2 chunks +35 lines, -0 lines 1 comment Download

Messages

Total messages: 15 (4 generated)
bruthig
sadrul@ can you please review this?
5 years, 9 months ago (2015-03-06 00:12:20 UTC) #2
sadrul
Looks reasonable. But please get a review from a compositor owner. https://codereview.chromium.org/983933002/diff/1/ui/compositor/layer_owner.cc File ui/compositor/layer_owner.cc (right): ...
5 years, 9 months ago (2015-03-06 14:33:49 UTC) #3
bruthig
danakj@ can you take a look from a compositor perspective? https://codereview.chromium.org/983933002/diff/1/ui/compositor/layer_owner.cc File ui/compositor/layer_owner.cc (right): https://codereview.chromium.org/983933002/diff/1/ui/compositor/layer_owner.cc#newcode71 ...
5 years, 9 months ago (2015-03-06 15:20:42 UTC) #5
danakj
https://codereview.chromium.org/983933002/diff/20001/ui/compositor/layer_owner_unittest.cc File ui/compositor/layer_owner_unittest.cc (right): https://codereview.chromium.org/983933002/diff/20001/ui/compositor/layer_owner_unittest.cc#newcode64 ui/compositor/layer_owner_unittest.cc:64: EXPECT_EQ(nullptr, layer_copy->GetCompositor()); Should you check that the compositor root ...
5 years, 9 months ago (2015-03-06 17:53:58 UTC) #6
bruthig
danakj@ can you have another look? https://codereview.chromium.org/983933002/diff/20001/ui/compositor/layer_owner_unittest.cc File ui/compositor/layer_owner_unittest.cc (right): https://codereview.chromium.org/983933002/diff/20001/ui/compositor/layer_owner_unittest.cc#newcode64 ui/compositor/layer_owner_unittest.cc:64: EXPECT_EQ(nullptr, layer_copy->GetCompositor()); On ...
5 years, 9 months ago (2015-03-06 18:10:46 UTC) #7
danakj
LGTM
5 years, 9 months ago (2015-03-06 18:16:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/983933002/40001
5 years, 9 months ago (2015-03-06 18:21:43 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-06 20:35:53 UTC) #11
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/26d2ed6065c28b46c56a1266a6c7e28c9db55d45 Cr-Commit-Position: refs/heads/master@{#319487}
5 years, 9 months ago (2015-03-06 20:36:30 UTC) #12
Lei Zhang
https://codereview.chromium.org/983933002/diff/40001/ui/compositor/layer_owner_unittest.cc File ui/compositor/layer_owner_unittest.cc (right): https://codereview.chromium.org/983933002/diff/40001/ui/compositor/layer_owner_unittest.cc#newcode54 ui/compositor/layer_owner_unittest.cc:54: ui::InitializeContextFactoryForTests(false); Looks like you forgot to call TerminateContextFactoryForTests()
5 years, 9 months ago (2015-03-06 22:09:14 UTC) #14
Lei Zhang
5 years, 9 months ago (2015-03-06 22:14:52 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/984103003/ by thestig@chromium.org.

The reason for reverting is: Unit test forgot to
callTerminateContextFactoryForTests() and leaks memory..

Powered by Google App Engine
This is Rietveld 408576698