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

Side by Side Diff: services/ui/ws/server_window_surface.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 unified diff | Download patch
« no previous file with comments | « services/ui/ws/server_window_surface.h ('k') | services/ui/ws/server_window_surface_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/ui/ws/server_window_surface.h" 5 #include "services/ui/ws/server_window_surface.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "cc/output/compositor_frame.h" 9 #include "cc/output/compositor_frame.h"
10 #include "cc/quads/shared_quad_state.h" 10 #include "cc/quads/shared_quad_state.h"
11 #include "cc/quads/surface_draw_quad.h" 11 #include "cc/quads/surface_draw_quad.h"
12 #include "services/ui/surfaces/display_compositor.h" 12 #include "services/ui/surfaces/display_compositor.h"
13 #include "services/ui/ws/server_window.h" 13 #include "services/ui/ws/server_window.h"
14 #include "services/ui/ws/server_window_delegate.h" 14 #include "services/ui/ws/server_window_delegate.h"
15 #include "services/ui/ws/server_window_surface_manager.h" 15 #include "services/ui/ws/server_window_surface_manager.h"
16 16
17 namespace ui { 17 namespace ui {
18 namespace ws { 18 namespace ws {
19 19
20 ServerWindowSurface::ServerWindowSurface( 20 ServerWindowSurface::ServerWindowSurface(
21 ServerWindowSurfaceManager* manager, 21 ServerWindowSurfaceManager* manager,
22 const cc::FrameSinkId& frame_sink_id,
22 mojo::InterfaceRequest<Surface> request, 23 mojo::InterfaceRequest<Surface> request,
23 mojom::SurfaceClientPtr client) 24 mojom::SurfaceClientPtr client)
24 : frame_sink_id_(manager->window() 25 : frame_sink_id_(frame_sink_id),
25 ->delegate()
26 ->GetDisplayCompositor()
27 ->GenerateNextClientId(),
28 0),
29 manager_(manager), 26 manager_(manager),
30 surface_id_allocator_(frame_sink_id_), 27 surface_id_allocator_(frame_sink_id_),
31 surface_factory_(frame_sink_id_, manager_->GetSurfaceManager(), this), 28 surface_factory_(frame_sink_id_, manager_->GetSurfaceManager(), this),
32 client_(std::move(client)), 29 client_(std::move(client)),
33 binding_(this, std::move(request)) { 30 binding_(this, std::move(request)) {
34 cc::SurfaceManager* surface_manager = manager_->GetSurfaceManager(); 31 cc::SurfaceManager* surface_manager = manager_->GetSurfaceManager();
35 surface_manager->RegisterFrameSinkId(frame_sink_id_); 32 surface_manager->RegisterFrameSinkId(frame_sink_id_);
36 surface_manager->RegisterSurfaceFactoryClient(frame_sink_id_, this); 33 surface_manager->RegisterSurfaceFactoryClient(frame_sink_id_, this);
37 } 34 }
38 35
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 client_->ReturnResources(mojo::Array<cc::ReturnedResource>::From(resources)); 90 client_->ReturnResources(mojo::Array<cc::ReturnedResource>::From(resources));
94 } 91 }
95 92
96 void ServerWindowSurface::SetBeginFrameSource( 93 void ServerWindowSurface::SetBeginFrameSource(
97 cc::BeginFrameSource* begin_frame_source) { 94 cc::BeginFrameSource* begin_frame_source) {
98 // TODO(tansell): Implement this. 95 // TODO(tansell): Implement this.
99 } 96 }
100 97
101 } // namespace ws 98 } // namespace ws
102 } // namespace ui 99 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/server_window_surface.h ('k') | services/ui/ws/server_window_surface_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698