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

Issue 132473007: aura: Destroy the compositor before destroying the backing window. (Closed)

Created:
6 years, 11 months ago by danakj
Modified:
6 years, 11 months ago
CC:
chromium-reviews, tfarina, ben+views_chromium.org, piman
Visibility:
Public.

Description

aura: Destroy the compositor before destroying the backing window. This was causing linux_aura single-process browser tests to crash since they don't set up a default X error handler. When the compositor is shutting down it does a finish and this might try to swap to the X window. Also change the windows shutdown ordering to match. R=ben, enne BUG=270918 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245028 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245586

Patch Set 1 #

Total comments: 4

Patch Set 2 : destroy-window: comment #

Patch Set 3 : destroy-window: windows #

Total comments: 5

Patch Set 4 : destroy-window: windows2 #

Patch Set 5 : destroy-window: windows3 #

Patch Set 6 : destroy-window: compile #

Total comments: 2

Patch Set 7 : destroy-window: end #

Patch Set 8 : destroy-window: #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -5 lines) Patch
M ui/aura/window_tree_host.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M ui/gfx/win/window_impl.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_win.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc View 1 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
danakj
6 years, 11 months ago (2014-01-10 22:34:21 UTC) #1
danakj
6 years, 11 months ago (2014-01-10 22:34:39 UTC) #2
enne (OOO)
lgtm. Sorry for not being careful enough with where I left that DestroyCompositor.
6 years, 11 months ago (2014-01-10 22:37:28 UTC) #3
danakj
ben@chromium.org: OWNERS review
6 years, 11 months ago (2014-01-10 22:44:48 UTC) #4
danakj
ben: ping for review
6 years, 11 months ago (2014-01-13 19:08:58 UTC) #5
Ben Goodger (Google)
https://codereview.chromium.org/132473007/diff/1/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc File ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc (right): https://codereview.chromium.org/132473007/diff/1/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc#newcode323 ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc:323: DestroyCompositor(); So, I wonder if we should do this ...
6 years, 11 months ago (2014-01-13 23:11:46 UTC) #6
sky
https://codereview.chromium.org/132473007/diff/1/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc File ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc (right): https://codereview.chromium.org/132473007/diff/1/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc#newcode322 ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc:322: // Destroy the compositor before destroying the |xwindow_|. nit: ...
6 years, 11 months ago (2014-01-13 23:51:28 UTC) #7
danakj
https://codereview.chromium.org/132473007/diff/1/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc File ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc (right): https://codereview.chromium.org/132473007/diff/1/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc#newcode322 ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc:322: // Destroy the compositor before destroying the |xwindow_|. On ...
6 years, 11 months ago (2014-01-13 23:54:38 UTC) #8
danakj
On 2014/01/13 23:54:38, danakj wrote: > https://codereview.chromium.org/132473007/diff/1/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc > File ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc (right): > > https://codereview.chromium.org/132473007/diff/1/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc#newcode322 > ...
6 years, 11 months ago (2014-01-14 00:06:21 UTC) #9
danakj
Lots of green bots. ping for review please.
6 years, 11 months ago (2014-01-14 21:26:53 UTC) #10
Ben Goodger (Google)
https://codereview.chromium.org/132473007/diff/240001/ui/gfx/win/window_impl.cc File ui/gfx/win/window_impl.cc (right): https://codereview.chromium.org/132473007/diff/240001/ui/gfx/win/window_impl.cc#newcode222 ui/gfx/win/window_impl.cc:222: void WindowImpl::Destroy() { you actually can't rely on people ...
6 years, 11 months ago (2014-01-14 21:48:02 UTC) #11
danakj
https://codereview.chromium.org/132473007/diff/240001/ui/gfx/win/window_impl.cc File ui/gfx/win/window_impl.cc (right): https://codereview.chromium.org/132473007/diff/240001/ui/gfx/win/window_impl.cc#newcode224 ui/gfx/win/window_impl.cc:224: hwnd_ = NULL; On 2014/01/14 21:48:03, Ben Goodger (Google) ...
6 years, 11 months ago (2014-01-14 21:58:41 UTC) #12
Ben Goodger (Google)
On 2014/01/14 21:58:41, danakj wrote: > https://codereview.chromium.org/132473007/diff/240001/ui/gfx/win/window_impl.cc > File ui/gfx/win/window_impl.cc (right): > > https://codereview.chromium.org/132473007/diff/240001/ui/gfx/win/window_impl.cc#newcode224 > ...
6 years, 11 months ago (2014-01-15 05:17:10 UTC) #13
danakj
On 2014/01/15 05:17:10, Ben Goodger (Google) wrote: > On 2014/01/14 21:58:41, danakj wrote: > > ...
6 years, 11 months ago (2014-01-15 16:31:24 UTC) #14
Ben Goodger (Google)
https://codereview.chromium.org/132473007/diff/540001/ui/gfx/win/window_impl.cc File ui/gfx/win/window_impl.cc (right): https://codereview.chromium.org/132473007/diff/540001/ui/gfx/win/window_impl.cc#newcode222 ui/gfx/win/window_impl.cc:222: void WindowImpl::SetDestroyed() { hwnd_ = NULL; } sorry to ...
6 years, 11 months ago (2014-01-15 19:16:20 UTC) #15
danakj
https://codereview.chromium.org/132473007/diff/540001/ui/gfx/win/window_impl.cc File ui/gfx/win/window_impl.cc (right): https://codereview.chromium.org/132473007/diff/540001/ui/gfx/win/window_impl.cc#newcode222 ui/gfx/win/window_impl.cc:222: void WindowImpl::SetDestroyed() { hwnd_ = NULL; } On 2014/01/15 ...
6 years, 11 months ago (2014-01-15 19:23:51 UTC) #16
Ben Goodger (Google)
lgtm, thanks!
6 years, 11 months ago (2014-01-15 20:09:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/132473007/600002
6 years, 11 months ago (2014-01-15 21:28:25 UTC) #18
commit-bot: I haz the power
Change committed as 245028
6 years, 11 months ago (2014-01-16 00:11:45 UTC) #19
danakj
A revert of this CL has been created in https://codereview.chromium.org/137893013/ by danakj@chromium.org. The reason for ...
6 years, 11 months ago (2014-01-16 17:01:47 UTC) #20
danakj
ben: PTAL The WindowImpl can be destroyed it seems by the ProcessWindowMessage or the DefWindowProc ...
6 years, 11 months ago (2014-01-16 17:05:28 UTC) #21
Ben Goodger (Google)
lgtm
6 years, 11 months ago (2014-01-16 17:06:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/132473007/830001
6 years, 11 months ago (2014-01-16 17:39:47 UTC) #23
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=247429
6 years, 11 months ago (2014-01-16 20:49:18 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/132473007/830001
6 years, 11 months ago (2014-01-16 20:54:23 UTC) #25
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=247871
6 years, 11 months ago (2014-01-17 07:38:13 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/132473007/830001
6 years, 11 months ago (2014-01-17 16:33:18 UTC) #27
commit-bot: I haz the power
6 years, 11 months ago (2014-01-17 19:39:04 UTC) #28
Message was sent while issue was closed.
Change committed as 245586

Powered by Google App Engine
This is Rietveld 408576698