OLD | NEW |
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_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ |
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ | 6 #define COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" | 13 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" |
14 #include "cc/surfaces/compositor_frame_sink_support.h" | 14 #include "cc/surfaces/compositor_frame_sink_support.h" |
15 #include "cc/surfaces/compositor_frame_sink_support_client.h" | 15 #include "cc/surfaces/compositor_frame_sink_support_client.h" |
16 #include "cc/surfaces/local_surface_id.h" | 16 #include "cc/surfaces/local_surface_id.h" |
17 #include "cc/surfaces/surface_id.h" | 17 #include "cc/surfaces/surface_id.h" |
18 #include "components/display_compositor/display_compositor_export.h" | 18 #include "components/viz/frame_sinks/gpu_compositor_frame_sink_delegate.h" |
19 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h" | |
20 #include "mojo/public/cpp/bindings/binding.h" | 19 #include "mojo/public/cpp/bindings/binding.h" |
21 | 20 |
22 namespace display_compositor { | 21 namespace viz { |
23 | 22 |
24 // Server side representation of a WindowSurface. | 23 // Server side representation of a WindowSurface. |
25 class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink | 24 class GpuCompositorFrameSink |
26 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient), | 25 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient), |
27 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink), | 26 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink), |
28 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate) { | 27 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate) { |
29 public: | 28 public: |
30 GpuCompositorFrameSink( | 29 GpuCompositorFrameSink( |
31 GpuCompositorFrameSinkDelegate* delegate, | 30 GpuCompositorFrameSinkDelegate* delegate, |
32 cc::SurfaceManager* surface_manager, | 31 cc::SurfaceManager* surface_manager, |
33 const cc::FrameSinkId& frame_sink_id, | 32 const cc::FrameSinkId& frame_sink_id, |
34 cc::mojom::MojoCompositorFrameSinkRequest request, | 33 cc::mojom::MojoCompositorFrameSinkRequest request, |
35 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, | 34 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 67 |
69 cc::mojom::MojoCompositorFrameSinkClientPtr client_; | 68 cc::mojom::MojoCompositorFrameSinkClientPtr client_; |
70 mojo::Binding<cc::mojom::MojoCompositorFrameSink> | 69 mojo::Binding<cc::mojom::MojoCompositorFrameSink> |
71 compositor_frame_sink_binding_; | 70 compositor_frame_sink_binding_; |
72 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> | 71 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> |
73 compositor_frame_sink_private_binding_; | 72 compositor_frame_sink_private_binding_; |
74 | 73 |
75 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); | 74 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); |
76 }; | 75 }; |
77 | 76 |
78 } // namespace display_compositor | 77 } // namespace viz |
79 | 78 |
80 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ | 79 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |