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

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

Issue 2481263002: Introduce Display Compositor mojo interface. Use InProcessContextProvider. (Closed)
Patch Set: Speculative fix for android build issue 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
Index: services/ui/ws/window_server.h
diff --git a/services/ui/ws/window_server.h b/services/ui/ws/window_server.h
index 62540dcc24c6e3ceca8653f455fffe5faa982b77..f0dc8d585a70c4c28e54af81a35f2851797d2914 100644
--- a/services/ui/ws/window_server.h
+++ b/services/ui/ws/window_server.h
@@ -228,7 +228,7 @@ class WindowServer : public ServerWindowDelegate,
WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id);
// ServerWindowDelegate:
- ui::DisplayCompositor* GetDisplayCompositor() override;
+ cc::mojom::DisplayCompositor* GetDisplayCompositor() override;
// UserDisplayManagerDelegate:
bool GetFrameDecorationsForUser(
@@ -325,8 +325,7 @@ class WindowServer : public ServerWindowDelegate,
ServerWindow* transient_child) override;
// GpuServiceProxyDelegate:
- void OnGpuChannelEstablished(
- scoped_refptr<gpu::GpuChannelHost> gpu_channel) override;
+ void OnGpuServiceInitialized() override;
// cc::mojom::DisplayCompositorClient:
void OnSurfaceCreated(const cc::SurfaceId& surface_id,
@@ -369,8 +368,6 @@ class WindowServer : public ServerWindowDelegate,
uint32_t next_wm_change_id_;
std::unique_ptr<GpuServiceProxy> gpu_proxy_;
- // TODO(fsamuel): The window server should not have a GPU channel.
- scoped_refptr<gpu::GpuChannelHost> gpu_channel_;
base::Callback<void(ServerWindow*)> window_paint_callback_;
UserActivityMonitorMap activity_monitor_map_;
@@ -380,7 +377,8 @@ class WindowServer : public ServerWindowDelegate,
mojo::Binding<cc::mojom::DisplayCompositorClient>
display_compositor_client_binding_;
// State for rendering into a Surface.
- scoped_refptr<ui::DisplayCompositor> display_compositor_;
+ cc::mojom::DisplayCompositorPtr display_compositor_;
+ cc::mojom::DisplayCompositorRequest display_compositor_request_;
DISALLOW_COPY_AND_ASSIGN(WindowServer);
};

Powered by Google App Engine
This is Rietveld 408576698