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

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

Issue 2711913006: Move FrameSink hierarchy registration to DisplayCompositor interface (Closed)
Patch Set: Fix mojom Formatting Created 3 years, 10 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/server_window_compositor_frame_sink_manager.cc ('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 6ca22491bff3e8bf6f985344f2a000304df293ae..3b0446dea15217be18930c59287a6f6f4925ca74 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -638,6 +638,15 @@ void WindowServer::OnWindowHierarchyChanged(ServerWindow* window,
ProcessWindowHierarchyChanged(window, new_parent, old_parent);
+ if (old_parent) {
+ display_compositor_->UnregisterFrameSinkHierarchy(
+ old_parent->frame_sink_id(), window->frame_sink_id());
+ }
+ if (new_parent) {
+ display_compositor_->RegisterFrameSinkHierarchy(new_parent->frame_sink_id(),
+ window->frame_sink_id());
+ }
+
UpdateNativeCursorFromMouseLocation(window);
}
« no previous file with comments | « services/ui/ws/server_window_compositor_frame_sink_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698