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

Side by Side Diff: content/browser/compositor/frame_sink_manager_host.cc

Issue 2803993003: Introduce FrameSinkManagerHost in content/browser/. (Closed)
Patch Set: Fix android. Created 3 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/compositor/frame_sink_manager_host.h"
6
7 #include <utility>
8
9 #include "cc/surfaces/surface_info.h"
10 #include "cc/surfaces/surface_manager.h"
11
12 namespace content {
13
14 FrameSinkManagerHost::FrameSinkManagerHost()
15 : binding_(this),
16 frame_sink_manager_(false, // Use surface sequences.
17 nullptr,
18 MakeRequest(&frame_sink_manager_ptr_),
19 binding_.CreateInterfacePtrAndBind()) {}
20
21 FrameSinkManagerHost::~FrameSinkManagerHost() {}
22
23 cc::SurfaceManager* FrameSinkManagerHost::surface_manager() {
24 return frame_sink_manager_.surface_manager();
25 }
26
27 void FrameSinkManagerHost::CreateCompositorFrameSink(
28 const cc::FrameSinkId& frame_sink_id,
29 cc::mojom::MojoCompositorFrameSinkRequest request,
30 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
31 cc::mojom::MojoCompositorFrameSinkClientPtr client) {
32 frame_sink_manager_ptr_->CreateCompositorFrameSink(
33 frame_sink_id, std::move(request), std::move(private_request),
34 std::move(client));
35 }
36
37 void FrameSinkManagerHost::RegisterFrameSinkHierarchy(
38 const cc::FrameSinkId& parent_frame_sink_id,
39 const cc::FrameSinkId& child_frame_sink_id) {
40 frame_sink_manager_ptr_->RegisterFrameSinkHierarchy(parent_frame_sink_id,
41 child_frame_sink_id);
42 }
43
44 void FrameSinkManagerHost::UnregisterFrameSinkHierarchy(
45 const cc::FrameSinkId& parent_frame_sink_id,
46 const cc::FrameSinkId& child_frame_sink_id) {
47 frame_sink_manager_ptr_->UnregisterFrameSinkHierarchy(parent_frame_sink_id,
48 child_frame_sink_id);
49 }
50
51 void FrameSinkManagerHost::OnSurfaceCreated(
52 const cc::SurfaceInfo& surface_info) {
53 // TODO(kylechar): Implement.
54 }
55
56 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/frame_sink_manager_host.h ('k') | content/browser/compositor/gpu_process_transport_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698