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

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

Issue 2541683004: Add/remove surface references via MojoCompositorFrameSink. (Closed)
Patch Set: 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
Index: services/ui/ws/window_server.h
diff --git a/services/ui/ws/window_server.h b/services/ui/ws/window_server.h
index a19909f9c80de5c765e32efd20859efb43e4f082..80fc34f2b735eb323c69b71ac155b4857090dabc 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,7 @@ class WindowServer : public ServerWindowDelegate,
void OnSurfaceCreated(const cc::SurfaceId& surface_id,
const gfx::Size& frame_size,
float device_scale_factor) override;
+ void OnRootSurfaceId(const cc::SurfaceId& root_surface_id) override;
// UserIdTrackerObserver:
void OnActiveUserIdChanged(const UserId& previously_active_id,
@@ -373,6 +375,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.

Powered by Google App Engine
This is Rietveld 408576698