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

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

Issue 2830143002: Add FrameSinkManagerHost to NoTransportImageTransportFactory. (Closed)
Patch Set: Also 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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 #ifndef CONTENT_BROWSER_COMPOSITOR_FRAME_SINK_MANAGER_HOST_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_FRAME_SINK_MANAGER_HOST_H_
6 #define CONTENT_BROWSER_COMPOSITOR_FRAME_SINK_MANAGER_HOST_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_FRAME_SINK_MANAGER_HOST_H_
7 7
8 #include "base/compiler_specific.h"
8 #include "base/macros.h" 9 #include "base/macros.h"
9 #include "cc/ipc/frame_sink_manager.mojom.h" 10 #include "cc/ipc/frame_sink_manager.mojom.h"
10 #include "cc/surfaces/frame_sink_id.h" 11 #include "cc/surfaces/frame_sink_id.h"
11 #include "components/viz/frame_sinks/mojo_frame_sink_manager.h" 12 #include "components/viz/frame_sinks/mojo_frame_sink_manager.h"
13 #include "content/common/content_export.h"
12 #include "mojo/public/cpp/bindings/binding.h" 14 #include "mojo/public/cpp/bindings/binding.h"
13 15
14 namespace cc { 16 namespace cc {
15 class SurfaceInfo; 17 class SurfaceInfo;
16 class SurfaceManager; 18 class SurfaceManager;
17 } 19 }
18 20
19 namespace content { 21 namespace content {
20 22
21 // Browser side implementation of mojom::FrameSinkManager. Manages frame sinks 23 // Browser side implementation of mojom::FrameSinkManager. Manages frame sinks
22 // and is inteded to replace SurfaceManager. 24 // and is intended to replace SurfaceManager.
23 class FrameSinkManagerHost : cc::mojom::FrameSinkManagerClient { 25 class CONTENT_EXPORT FrameSinkManagerHost
26 : NON_EXPORTED_BASE(cc::mojom::FrameSinkManagerClient) {
24 public: 27 public:
25 FrameSinkManagerHost(); 28 FrameSinkManagerHost();
26 ~FrameSinkManagerHost() override; 29 ~FrameSinkManagerHost() override;
27 30
28 cc::SurfaceManager* surface_manager(); 31 cc::SurfaceManager* surface_manager();
29 32
33 // Start Mojo connection to FrameSinkManager. Most tests won't need this.
34 void ConnectToFrameSinkManager();
35
30 // See frame_sink_manager.mojom for descriptions. 36 // See frame_sink_manager.mojom for descriptions.
31 void CreateCompositorFrameSink( 37 void CreateCompositorFrameSink(
32 const cc::FrameSinkId& frame_sink_id, 38 const cc::FrameSinkId& frame_sink_id,
33 cc::mojom::MojoCompositorFrameSinkRequest request, 39 cc::mojom::MojoCompositorFrameSinkRequest request,
34 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, 40 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
35 cc::mojom::MojoCompositorFrameSinkClientPtr client); 41 cc::mojom::MojoCompositorFrameSinkClientPtr client);
36 void RegisterFrameSinkHierarchy(const cc::FrameSinkId& parent_frame_sink_id, 42 void RegisterFrameSinkHierarchy(const cc::FrameSinkId& parent_frame_sink_id,
37 const cc::FrameSinkId& child_frame_sink_id); 43 const cc::FrameSinkId& child_frame_sink_id);
38 void UnregisterFrameSinkHierarchy(const cc::FrameSinkId& parent_frame_sink_id, 44 void UnregisterFrameSinkHierarchy(const cc::FrameSinkId& parent_frame_sink_id,
39 const cc::FrameSinkId& child_frame_sink_id); 45 const cc::FrameSinkId& child_frame_sink_id);
(...skipping 12 matching lines...) Expand all
52 // Other than using SurfaceManager, access to |frame_sink_manager_| should 58 // Other than using SurfaceManager, access to |frame_sink_manager_| should
53 // happen using Mojo. See http://crbug.com/657959. 59 // happen using Mojo. See http://crbug.com/657959.
54 viz::MojoFrameSinkManager frame_sink_manager_; 60 viz::MojoFrameSinkManager frame_sink_manager_;
55 61
56 DISALLOW_COPY_AND_ASSIGN(FrameSinkManagerHost); 62 DISALLOW_COPY_AND_ASSIGN(FrameSinkManagerHost);
57 }; 63 };
58 64
59 } // namespace content 65 } // namespace content
60 66
61 #endif // CONTENT_BROWSER_COMPOSITOR_FRAME_SINK_MANAGER_HOST_H_ 67 #endif // CONTENT_BROWSER_COMPOSITOR_FRAME_SINK_MANAGER_HOST_H_
OLDNEW
« no previous file with comments | « components/viz/frame_sinks/mojo_frame_sink_manager.cc ('k') | content/browser/compositor/frame_sink_manager_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698