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

Side by Side Diff: components/viz/frame_sinks/mojo_frame_sink_manager.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
« no previous file with comments | « no previous file | components/viz/frame_sinks/mojo_frame_sink_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 #ifndef COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ 5 #ifndef COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_
6 #define COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ 6 #define COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 21 matching lines...) Expand all
32 // This is intended to be created in the viz or GPU process. For mus+ash this 32 // This is intended to be created in the viz or GPU process. For mus+ash this
33 // will be true after the mus process split. For non-mus Chrome this will be 33 // will be true after the mus process split. For non-mus Chrome this will be
34 // created in the browser process, at least until GPU implementations can be 34 // created in the browser process, at least until GPU implementations can be
35 // unified. 35 // unified.
36 class VIZ_EXPORT MojoFrameSinkManager 36 class VIZ_EXPORT MojoFrameSinkManager
37 : public cc::SurfaceObserver, 37 : public cc::SurfaceObserver,
38 public NON_EXPORTED_BASE(GpuCompositorFrameSinkDelegate), 38 public NON_EXPORTED_BASE(GpuCompositorFrameSinkDelegate),
39 public NON_EXPORTED_BASE(cc::mojom::FrameSinkManager) { 39 public NON_EXPORTED_BASE(cc::mojom::FrameSinkManager) {
40 public: 40 public:
41 MojoFrameSinkManager(bool use_surface_references, 41 MojoFrameSinkManager(bool use_surface_references,
42 DisplayProvider* display_provider, 42 DisplayProvider* display_provider);
43 cc::mojom::FrameSinkManagerRequest request,
44 cc::mojom::FrameSinkManagerClientPtr client);
45 ~MojoFrameSinkManager() override; 43 ~MojoFrameSinkManager() override;
46 44
47 cc::SurfaceManager* surface_manager() { return &manager_; } 45 cc::SurfaceManager* surface_manager() { return &manager_; }
48 46
47 // Binds to |request| and store connection back to |client|.
48 void Connect(cc::mojom::FrameSinkManagerRequest request,
49 cc::mojom::FrameSinkManagerClientPtr client);
50
49 // cc::mojom::FrameSinkManager implementation: 51 // cc::mojom::FrameSinkManager implementation:
50 void CreateRootCompositorFrameSink( 52 void CreateRootCompositorFrameSink(
51 const cc::FrameSinkId& frame_sink_id, 53 const cc::FrameSinkId& frame_sink_id,
52 gpu::SurfaceHandle surface_handle, 54 gpu::SurfaceHandle surface_handle,
53 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request, 55 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request,
54 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, 56 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
55 cc::mojom::MojoCompositorFrameSinkClientPtr client, 57 cc::mojom::MojoCompositorFrameSinkClientPtr client,
56 cc::mojom::DisplayPrivateAssociatedRequest display_private_request) 58 cc::mojom::DisplayPrivateAssociatedRequest display_private_request)
57 override; 59 override;
58 void CreateCompositorFrameSink( 60 void CreateCompositorFrameSink(
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 106
105 cc::mojom::FrameSinkManagerClientPtr client_; 107 cc::mojom::FrameSinkManagerClientPtr client_;
106 mojo::Binding<cc::mojom::FrameSinkManager> binding_; 108 mojo::Binding<cc::mojom::FrameSinkManager> binding_;
107 109
108 DISALLOW_COPY_AND_ASSIGN(MojoFrameSinkManager); 110 DISALLOW_COPY_AND_ASSIGN(MojoFrameSinkManager);
109 }; 111 };
110 112
111 } // namespace viz 113 } // namespace viz
112 114
113 #endif // COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ 115 #endif // COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | components/viz/frame_sinks/mojo_frame_sink_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698