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

Issue 2741533002: Fix AshWindowTreeHost shutdown for Ozone X11. (Closed)

Created:
3 years, 9 months ago by kylechar
Modified:
3 years, 9 months ago
Reviewers:
James Cook, sadrul
CC:
chromium-reviews, kalyank, sadrul, ozone-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix AshWindowTreeHost shutdown for Ozone X11. AshWindowTreeHostX11 stops receiving XEvents when PrepareForShutdown() is called to ensure it doesn't get any configuration events after Ash starts tearing down the RootWindowController. Things like the window size changing after teardown has started ends up crashing Ash. We need to do something similar, in a platform independent way for Ozone, when using the Ozone X11 platform. Add PlatformWindow::PrepareForShutdown() and call it from AshWindowTreeHostPlatform::PrepareForShutdown(). BUG=664570 Review-Url: https://codereview.chromium.org/2741533002 Cr-Commit-Position: refs/heads/master@{#455794} Committed: https://chromium.googlesource.com/chromium/src/+/1fc7c670580371210623e35e09301eda28e656af

Patch Set 1 #

Patch Set 2 : Add to other PlatformWindow implementations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -14 lines) Patch
M ash/host/ash_window_tree_host_platform.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/ozone/platform/cast/platform_window_cast.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_window_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_window_host.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/headless/headless_window.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/headless/headless_window.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_window.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_window.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/x11/ozone_platform_x11.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/platform_window/android/platform_window_android.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/platform_window/android/platform_window_android.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/platform_window/platform_window.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/platform_window/stub/stub_window.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/platform_window/stub/stub_window.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/platform_window/win/win_window.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/platform_window/win/win_window.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/platform_window/x11/x11_window.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/platform_window/x11/x11_window.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/platform_window/x11/x11_window_ozone.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ui/platform_window/x11/x11_window_ozone.cc View 1 chunk +16 lines, -10 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (17 generated)
kylechar
3 years, 9 months ago (2017-03-08 21:52:28 UTC) #2
sadrul
lgtm
3 years, 9 months ago (2017-03-09 01:54:58 UTC) #3
kylechar
+jamescook for ash/host/ash_window_tree_host_platform.cc
3 years, 9 months ago (2017-03-09 14:53:31 UTC) #5
James Cook
lgtm
3 years, 9 months ago (2017-03-09 15:00:54 UTC) #9
kylechar
Thanks!
3 years, 9 months ago (2017-03-09 15:07:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2741533002/20001
3 years, 9 months ago (2017-03-09 18:12:05 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 18:17:39 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/1fc7c670580371210623e35e0930...

Powered by Google App Engine
This is Rietveld 408576698