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

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: Added missing serialization 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..41bc9490bda38db0bac0955adbf8bafb84d78d4b 100644
--- a/services/ui/ws/server_window_surface_manager.cc
+++ b/services/ui/ws/server_window_surface_manager.cc
@@ -5,6 +5,7 @@
#include "services/ui/ws/server_window_surface_manager.h"
#include "services/ui/surfaces/display_compositor.h"
+#include "services/ui/ws/ids.h"
#include "services/ui/ws/server_window.h"
#include "services/ui/ws/server_window_delegate.h"
#include "services/ui/ws/server_window_surface.h"
@@ -39,8 +40,10 @@ void ServerWindowSurfaceManager::CreateSurface(
mojom::SurfaceType surface_type,
mojo::InterfaceRequest<mojom::Surface> request,
mojom::SurfaceClientPtr client) {
- std::unique_ptr<ServerWindowSurface> surface(
- new ServerWindowSurface(this, std::move(request), std::move(client)));
+ cc::FrameSinkId frame_sink_id(WindowIdToTransportId(window_->id()),
+ static_cast<uint32_t>(surface_type));
+ std::unique_ptr<ServerWindowSurface> surface(new ServerWindowSurface(
+ this, frame_sink_id, std::move(request), std::move(client)));
type_to_surface_map_[surface_type] = std::move(surface);
}
« no previous file with comments | « services/ui/ws/server_window_surface.cc ('k') | third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698