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

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

Issue 2541683004: Add/remove surface references via MojoCompositorFrameSink. (Closed)
Patch Set: Cleanup. Created 4 years 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/test_server_window_delegate.cc ('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 17e335d73cec56998b98f6cecce606e9db5ae9c9..a965f390721644a6dd58e2f6a99fa10209c69a21 100644
--- a/services/ui/ws/window_server.h
+++ b/services/ui/ws/window_server.h
@@ -228,6 +228,7 @@ class WindowServer : public ServerWindowDelegate,
// ServerWindowDelegate:
cc::mojom::DisplayCompositor* GetDisplayCompositor() override;
+ const cc::SurfaceId& GetRootSurfaceId() const override;
// UserDisplayManagerDelegate:
bool GetFrameDecorationsForUser(
@@ -330,6 +331,8 @@ class WindowServer : public ServerWindowDelegate,
void OnSurfaceCreated(const cc::SurfaceId& surface_id,
const gfx::Size& frame_size,
float device_scale_factor) override;
+ void OnDisplayCompositorCreated(
+ const cc::SurfaceId& root_surface_id) override;
// UserIdTrackerObserver:
void OnActiveUserIdChanged(const UserId& previously_active_id,
@@ -373,6 +376,8 @@ class WindowServer : public ServerWindowDelegate,
WindowManagerWindowTreeFactorySet window_manager_window_tree_factory_set_;
+ cc::SurfaceId root_surface_id_;
+
mojo::Binding<cc::mojom::DisplayCompositorClient>
display_compositor_client_binding_;
// State for rendering into a Surface.
« no previous file with comments | « services/ui/ws/test_server_window_delegate.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698