OLD | NEW |
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 COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef COMPONENTS_VIZ_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ |
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ | 6 #define COMPONENTS_VIZ_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ |
7 | 7 |
8 #include "cc/ipc/frame_sink_manager.mojom.h" | 8 #include "cc/ipc/frame_sink_manager.mojom.h" |
9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" | 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" |
10 #include "cc/surfaces/compositor_frame_sink_support_client.h" | 10 #include "cc/surfaces/compositor_frame_sink_support_client.h" |
11 #include "cc/surfaces/display_client.h" | 11 #include "cc/surfaces/display_client.h" |
12 #include "cc/surfaces/local_surface_id.h" | 12 #include "cc/surfaces/local_surface_id.h" |
13 #include "cc/surfaces/surface_id.h" | 13 #include "cc/surfaces/surface_id.h" |
14 #include "components/display_compositor/display_compositor_export.h" | 14 #include "components/viz/frame_sinks/gpu_compositor_frame_sink_delegate.h" |
15 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h" | |
16 #include "mojo/public/cpp/bindings/associated_binding.h" | 15 #include "mojo/public/cpp/bindings/associated_binding.h" |
17 #include "mojo/public/cpp/bindings/binding.h" | 16 #include "mojo/public/cpp/bindings/binding.h" |
18 | 17 |
19 namespace cc { | 18 namespace cc { |
20 class BeginFrameSource; | 19 class BeginFrameSource; |
21 class CompositorFrameSinkSupport; | 20 class CompositorFrameSinkSupport; |
22 class Display; | 21 class Display; |
23 class SurfaceManager; | 22 class SurfaceManager; |
24 } | 23 } |
25 | 24 |
26 namespace display_compositor { | 25 namespace viz { |
27 | 26 |
28 class GpuCompositorFrameSinkDelegate; | 27 class GpuCompositorFrameSinkDelegate; |
29 | 28 |
30 class DISPLAY_COMPOSITOR_EXPORT GpuRootCompositorFrameSink | 29 class GpuRootCompositorFrameSink |
31 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient), | 30 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient), |
32 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink), | 31 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink), |
33 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate), | 32 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate), |
34 public NON_EXPORTED_BASE(cc::mojom::DisplayPrivate), | 33 public NON_EXPORTED_BASE(cc::mojom::DisplayPrivate), |
35 public NON_EXPORTED_BASE(cc::DisplayClient) { | 34 public NON_EXPORTED_BASE(cc::DisplayClient) { |
36 public: | 35 public: |
37 GpuRootCompositorFrameSink( | 36 GpuRootCompositorFrameSink( |
38 GpuCompositorFrameSinkDelegate* delegate, | 37 GpuCompositorFrameSinkDelegate* delegate, |
39 cc::SurfaceManager* surface_manager, | 38 cc::SurfaceManager* surface_manager, |
40 const cc::FrameSinkId& frame_sink_id, | 39 const cc::FrameSinkId& frame_sink_id, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 cc::mojom::MojoCompositorFrameSinkClientPtr client_; | 97 cc::mojom::MojoCompositorFrameSinkClientPtr client_; |
99 mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink> | 98 mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink> |
100 compositor_frame_sink_binding_; | 99 compositor_frame_sink_binding_; |
101 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> | 100 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> |
102 compositor_frame_sink_private_binding_; | 101 compositor_frame_sink_private_binding_; |
103 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_; | 102 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_; |
104 | 103 |
105 DISALLOW_COPY_AND_ASSIGN(GpuRootCompositorFrameSink); | 104 DISALLOW_COPY_AND_ASSIGN(GpuRootCompositorFrameSink); |
106 }; | 105 }; |
107 | 106 |
108 } // namespace display_compositor | 107 } // namespace viz |
109 | 108 |
110 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ | 109 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |