Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Issue 16831016: cc: Fix incorrect LTHI shutdown logic (Closed)

Created:
7 years, 6 months ago by enne (OOO)
Modified:
7 years, 5 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org, Sami
Visibility:
Public.

Description

cc: Fix incorrect LTHI shutdown logic It's possible that if there has never been an activation (implying no root layer on the active tree), then the trees will not be cleared during LayerTreeHostImpl's destructor. Given the comment in the destructor about animation, this seems to be problematic enough. Issue 251722 is about a case where the tile manager tries to activate the tree during its destruction but because the trees haven't been cleared yet, it thinks this is a supported operation. This is fixed by always destroying the trees in the destructor. Related cleanup is to remove the CleanupRenderSurfaces() call which isn't needed there. When you destroy a tree, you destroy its render surfaces. And, it looked like none of the other CleanupRenderSurfaces() calls were really needed either except for losing the output surface, so one call got moved there and all the rest of the functions got removed. [email protected] BUG=251722 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209242

Patch Set 1 #

Total comments: 5

Patch Set 2 : Remove ClearRenderSurface #

Patch Set 3 : Rebase #

Patch Set 4 : Fix unit tests by setting full root layer damage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -31 lines) Patch
M cc/trees/layer_tree_host_impl.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 5 chunks +3 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 1 chunk +0 lines, -17 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
enne (OOO)
This may seem like overkill cleanup, but this function has been on my radar before ...
7 years, 6 months ago (2013-06-20 00:15:22 UTC) #1
danakj
https://codereview.chromium.org/16831016/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/16831016/diff/1/cc/trees/layer_tree_host_impl.cc#newcode2105 cc/trees/layer_tree_host_impl.cc:2105: current->ClearRenderSurface(); This actually seems weird to do at all! ...
7 years, 6 months ago (2013-06-20 00:46:05 UTC) #2
enne (OOO)
Good catch! I forgot that render surface resources were not owned by the surfaces anymore. ...
7 years, 6 months ago (2013-06-20 00:51:31 UTC) #3
danakj
Cool, LGTM++
7 years, 6 months ago (2013-06-20 00:54:10 UTC) #4
danakj
+boliu fyi
7 years, 6 months ago (2013-06-20 00:54:51 UTC) #5
boliu
Looks like this is going to collide midair with https://codereview.chromium.org/16700003/ in layer_tree_host_impl.cc Should I hold ...
7 years, 6 months ago (2013-06-20 01:41:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/16831016/5001
7 years, 6 months ago (2013-06-20 01:43:58 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) cc_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=140491
7 years, 6 months ago (2013-06-20 03:38:10 UTC) #8
danakj
On Wed, Jun 19, 2013 at 9:41 PM, <[email protected]> wrote: > Looks like this is ...
7 years, 6 months ago (2013-06-20 15:04:20 UTC) #9
Yaron
On 2013/06/20 15:04:20, danakj wrote: > On Wed, Jun 19, 2013 at 9:41 PM, <mailto:[email protected]> ...
7 years, 6 months ago (2013-06-20 18:00:37 UTC) #10
danakj
On Thu, Jun 20, 2013 at 2:00 PM, <[email protected]> wrote: > On 2013/06/20 15:04:20, danakj ...
7 years, 6 months ago (2013-06-20 21:20:53 UTC) #11
boliu
Well, mine already went in. I wasn't added to the cc list so didn't see ...
7 years, 6 months ago (2013-06-20 22:21:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/16831016/31005
7 years, 5 months ago (2013-06-27 23:02:29 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) chrome_frame_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=170913
7 years, 5 months ago (2013-06-29 00:06:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/16831016/31005
7 years, 5 months ago (2013-06-29 00:20:53 UTC) #15
commit-bot: I haz the power
7 years, 5 months ago (2013-06-29 00:24:13 UTC) #16
Message was sent while issue was closed.
Change committed as 209242

Powered by Google App Engine
This is Rietveld 408576698