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

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

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
« cc/ipc/display_compositor.mojom ('K') | « 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 f4d960a65c3c858f7f588d525afbef07bb726961..3c01e3b969714264bcc9973ebf5780fb529cd523 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -513,6 +513,11 @@ cc::mojom::DisplayCompositor* WindowServer::GetDisplayCompositor() {
return display_compositor_.get();
}
+const cc::SurfaceId& WindowServer::GetRootSurfaceId() const {
+ DCHECK(!root_surface_id_.local_frame_id().nonce().is_empty());
+ return root_surface_id_;
+}
+
bool WindowServer::GetFrameDecorationsForUser(
const UserId& user_id,
mojom::FrameDecorationValuesPtr* values) {
@@ -807,6 +812,11 @@ void WindowServer::OnSurfaceCreated(const cc::SurfaceId& surface_id,
}
}
+void WindowServer::OnRootSurfaceId(const cc::SurfaceId& root_surface_id) {
+ LOG(ERROR) << "Got root surface id " << root_surface_id;
+ root_surface_id_ = root_surface_id;
+}
+
void WindowServer::OnActiveUserIdChanged(const UserId& previously_active_id,
const UserId& active_id) {
}
« cc/ipc/display_compositor.mojom ('K') | « services/ui/ws/window_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698