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