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

Unified Diff: services/ui/ws/window_server.cc

Issue 2610783003: mus: Make sure window parenting happens in the window server. (Closed)
Patch Set: . Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/window_server.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index 651eb157e9b46ff77ddaf87b626ae6e22db48aba..7e8d355eb252189a7b3b01dedc4b10f99911a1bf 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -509,6 +509,13 @@ WindowTree* WindowServer::GetCurrentDragLoopInitiator() {
void WindowServer::OnDisplayReady(Display* display, bool is_first) {
if (is_first)
delegate_->OnFirstDisplayReady();
+ gpu_host_->OnAcceleratedWidgetAvailable(
+ display->platform_display()->GetAcceleratedWidget());
+}
+
+void WindowServer::OnDisplayDestroyed(Display* display) {
+ gpu_host_->OnAcceleratedWidgetDestroyed(
+ display->platform_display()->GetAcceleratedWidget());
}
void WindowServer::OnNoMoreDisplays() {
« no previous file with comments | « services/ui/ws/window_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698