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

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

Issue 2449173003: Mus: Introduce DisplayCompositorClient mojo interface (Closed)
Patch Set: Explicitly add ui/gfx/geometry/mojo dependency Created 4 years, 1 month 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 b90e51a78d64e4b5c824821db864fa685fbc1a14..9b1302cdce6cdd0a3d33749e790e5088694477e7 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -44,16 +44,20 @@ struct WindowServer::CurrentDragLoopState {
WindowTree* initiator;
};
+// TODO(fsamuel): DisplayCompositor should be a mojo interface dispensed by
+// GpuServiceProxy.
WindowServer::WindowServer(WindowServerDelegate* delegate)
: delegate_(delegate),
- display_compositor_(new DisplayCompositor(this)),
next_client_id_(1),
display_manager_(new DisplayManager(this, &user_id_tracker_)),
current_operation_(nullptr),
in_destructor_(false),
next_wm_change_id_(0),
gpu_proxy_(new GpuServiceProxy(this)),
- window_manager_window_tree_factory_set_(this, &user_id_tracker_) {
+ window_manager_window_tree_factory_set_(this, &user_id_tracker_),
+ display_compositor_client_binding_(this),
+ display_compositor_(new DisplayCompositor(
+ display_compositor_client_binding_.CreateInterfacePtrAndBind())) {
user_id_tracker_.AddObserver(this);
OnUserIdAdded(user_id_tracker_.active_id());
}
« 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