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

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

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/BUILD.gn ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.h
diff --git a/services/ui/ws/window_server.h b/services/ui/ws/window_server.h
index 009811a8d9d8cda08da093f04fe539dadeba0f9a..1e1abf03719a59ce3574bcdf738835130c63fbed 100644
--- a/services/ui/ws/window_server.h
+++ b/services/ui/ws/window_server.h
@@ -14,12 +14,12 @@
#include "base/macros.h"
#include "base/optional.h"
+#include "cc/ipc/display_compositor.mojom.h"
#include "mojo/public/cpp/bindings/array.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
#include "services/ui/surfaces/display_compositor.h"
-#include "services/ui/surfaces/display_compositor_client.h"
#include "services/ui/ws/display.h"
#include "services/ui/ws/gpu_service_proxy_delegate.h"
#include "services/ui/ws/ids.h"
@@ -51,7 +51,7 @@ class WindowServer : public ServerWindowDelegate,
public GpuServiceProxyDelegate,
public UserDisplayManagerDelegate,
public UserIdTrackerObserver,
- public DisplayCompositorClient {
+ public cc::mojom::DisplayCompositorClient {
public:
explicit WindowServer(WindowServerDelegate* delegate);
~WindowServer() override;
@@ -339,7 +339,7 @@ class WindowServer : public ServerWindowDelegate,
void OnGpuChannelEstablished(
scoped_refptr<gpu::GpuChannelHost> gpu_channel) override;
- // DisplayCompositorClient:
+ // cc::mojom::DisplayCompositorClient:
void OnSurfaceCreated(const cc::SurfaceId& surface_id,
const gfx::Size& frame_size,
float device_scale_factor) override;
@@ -354,9 +354,6 @@ class WindowServer : public ServerWindowDelegate,
WindowServerDelegate* delegate_;
- // State for rendering into a Surface.
- scoped_refptr<ui::DisplayCompositor> display_compositor_;
-
// ID to use for next WindowTree.
ClientSpecificId next_client_id_;
@@ -390,6 +387,11 @@ class WindowServer : public ServerWindowDelegate,
WindowManagerWindowTreeFactorySet window_manager_window_tree_factory_set_;
+ mojo::Binding<cc::mojom::DisplayCompositorClient>
+ display_compositor_client_binding_;
+ // State for rendering into a Surface.
+ scoped_refptr<ui::DisplayCompositor> display_compositor_;
+
DISALLOW_COPY_AND_ASSIGN(WindowServer);
};
« no previous file with comments | « services/ui/ws/BUILD.gn ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698