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

Issue 695183003: Bring skydebugger closer to clean-shutdown (Closed)

Created:
6 years, 1 month ago by eseidel
Modified:
6 years, 1 month ago
Reviewers:
jamesr, sky
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, esprehn, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, ojan, sky, DaveMoore
Base URL:
git@github.com:domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Bring skydebugger closer to clean-shutdown This teaches the SkyDebugger prompt how to tell the sky debugger (server) to shut down instead of just calling exit(0). This also teaches the WindowManagerApp (server) how to tear down all of its connections itself instead of depending on the pipes to do so (which would crash when youd delete the WindowManagerApp as the pipes could outlive it with WindowManagerImpl objects containing raw pointers back to the WindowManagerApp). Shutdown is not yet clean. It errors out trying to talk to the X11 server, but it's closer to clean than it was prior to this change. I may add back and exit(0) to side-step shutdown until it can be made fully clean. R=jamesr@chromium.org, sky@chromium.org BUG=430291, 430242 Committed: https://chromium.googlesource.com/external/mojo/+/3f1157b76bb4ed7a42344bb236ab2314d261d973

Patch Set 1 #

Total comments: 2

Patch Set 2 : Call DestroyAll in SurfacesImpl instead of explicit Destroy #

Patch Set 3 : Fix build and remove outdated comment #

Total comments: 3

Patch Set 4 : Fix the comment #

Patch Set 5 : Remove disputed comment #

Patch Set 6 : Add crbug reference" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -5 lines) Patch
M mojo/services/surfaces/surfaces_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/view_manager/display_manager.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/window_manager/window_manager_app.cc View 2 chunks +10 lines, -2 lines 0 comments Download
M sky/tools/debugger/debugger.h View 1 chunk +1 line, -0 lines 0 comments Download
M sky/tools/debugger/debugger.cc View 1 2 3 4 5 2 chunks +10 lines, -2 lines 0 comments Download
M sky/tools/debugger/debugger.mojom View 1 chunk +1 line, -0 lines 0 comments Download
M sky/tools/debugger/prompt/prompt.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (1 generated)
eseidel
6 years, 1 month ago (2014-11-05 18:25:48 UTC) #1
eseidel
https://codereview.chromium.org/695183003/diff/1/mojo/cc/output_surface_mojo.cc File mojo/cc/output_surface_mojo.cc (right): https://codereview.chromium.org/695183003/diff/1/mojo/cc/output_surface_mojo.cc#newcode29 mojo/cc/output_surface_mojo.cc:29: surface_->DestroySurface(SurfaceId::From(surface_id_)); My understanding is that this is necessary based ...
6 years, 1 month ago (2014-11-05 18:27:08 UTC) #2
sky
https://codereview.chromium.org/695183003/diff/1/mojo/services/view_manager/display_manager.cc File mojo/services/view_manager/display_manager.cc (right): https://codereview.chromium.org/695183003/diff/1/mojo/services/view_manager/display_manager.cc#newcode99 mojo/services/view_manager/display_manager.cc:99: if (!surface_id_.is_null()) Since we're shutting down is this strictly ...
6 years, 1 month ago (2014-11-05 18:30:52 UTC) #4
eseidel
On 2014/11/05 18:30:52, sky wrote: > https://codereview.chromium.org/695183003/diff/1/mojo/services/view_manager/display_manager.cc > File mojo/services/view_manager/display_manager.cc (right): > > https://codereview.chromium.org/695183003/diff/1/mojo/services/view_manager/display_manager.cc#newcode99 > ...
6 years, 1 month ago (2014-11-05 18:35:27 UTC) #5
jamesr
On 2014/11/05 18:35:27, eseidel wrote: > On 2014/11/05 18:30:52, sky wrote: > > > https://codereview.chromium.org/695183003/diff/1/mojo/services/view_manager/display_manager.cc ...
6 years, 1 month ago (2014-11-05 18:42:50 UTC) #6
eseidel
ptal
6 years, 1 month ago (2014-11-05 18:46:57 UTC) #7
jamesr
https://codereview.chromium.org/695183003/diff/40001/mojo/services/surfaces/surfaces_impl.cc File mojo/services/surfaces/surfaces_impl.cc (right): https://codereview.chromium.org/695183003/diff/40001/mojo/services/surfaces/surfaces_impl.cc#newcode28 mojo/services/surfaces/surfaces_impl.cc:28: // Destory any outstanding surfaces when the connection goes ...
6 years, 1 month ago (2014-11-05 19:02:24 UTC) #8
eseidel
On 2014/11/05 19:02:24, jamesr wrote: > https://codereview.chromium.org/695183003/diff/40001/mojo/services/surfaces/surfaces_impl.cc > File mojo/services/surfaces/surfaces_impl.cc (right): > > https://codereview.chromium.org/695183003/diff/40001/mojo/services/surfaces/surfaces_impl.cc#newcode28 > ...
6 years, 1 month ago (2014-11-05 19:21:05 UTC) #9
eseidel
6 years, 1 month ago (2014-11-05 19:21:18 UTC) #10
sky
vm/wm LGTM
6 years, 1 month ago (2014-11-05 20:02:21 UTC) #11
jamesr
lgtm i don't think we have the pipe binding quite right yet, but that isn't ...
6 years, 1 month ago (2014-11-05 21:08:03 UTC) #12
eseidel
6 years, 1 month ago (2014-11-05 21:09:15 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
3f1157b76bb4ed7a42344bb236ab2314d261d973 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698