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

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

Issue 2385193002: FrameSinkIds use to WindowIds in window server, Process ID/Route ID in renderer (Closed)
Patch Set: FrameSinkIds refer to WindowIds in window server, and RenderProcess ID/Routing ID in renderer Created 4 years, 2 months 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/server_window_surface_manager.cc
diff --git a/services/ui/ws/server_window_surface_manager.cc b/services/ui/ws/server_window_surface_manager.cc
index 7386a8fde892f1076256145405a7231fd4f62c1d..d15e0d5527a4e3d433b736e432c54742bd85ce5b 100644
--- a/services/ui/ws/server_window_surface_manager.cc
+++ b/services/ui/ws/server_window_surface_manager.cc
@@ -39,8 +39,11 @@ void ServerWindowSurfaceManager::CreateSurface(
mojom::SurfaceType surface_type,
mojo::InterfaceRequest<mojom::Surface> request,
mojom::SurfaceClientPtr client) {
+ cc::FrameSinkId frame_sink_id(window_->id(),
+ static_cast<uint32_t>(surface_type));
std::unique_ptr<ServerWindowSurface> surface(
- new ServerWindowSurface(this, std::move(request), std::move(client)));
+ new ServerWindowSurface(this, frame_sink_id,
+ std::move(request), std::move(client)));
type_to_surface_map_[surface_type] = std::move(surface);
}

Powered by Google App Engine
This is Rietveld 408576698