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_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ |
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ | 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 // Server side representation of a WindowSurface. | 28 // Server side representation of a WindowSurface. |
29 class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink | 29 class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink |
30 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient), | 30 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient), |
31 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink), | 31 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink), |
32 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate) { | 32 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate) { |
33 public: | 33 public: |
34 GpuCompositorFrameSink( | 34 GpuCompositorFrameSink( |
35 GpuCompositorFrameSinkDelegate* delegate, | 35 GpuCompositorFrameSinkDelegate* delegate, |
36 cc::SurfaceManager* surface_manager, | 36 cc::SurfaceManager* surface_manager, |
37 const cc::FrameSinkId& frame_sink_id, | 37 const cc::FrameSinkId& frame_sink_id, |
38 std::unique_ptr<cc::Display> display, | 38 cc::Display* display, |
39 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, | |
40 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, | 39 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, |
41 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 40 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
42 | 41 |
43 ~GpuCompositorFrameSink() override; | 42 ~GpuCompositorFrameSink() override; |
44 | 43 |
45 // cc::mojom::MojoCompositorFrameSink: | 44 // cc::mojom::MojoCompositorFrameSink: |
46 void EvictFrame() override; | 45 void EvictFrame() override; |
47 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 46 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
48 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 47 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
49 cc::CompositorFrame frame) override; | 48 cc::CompositorFrame frame) override; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 cc::mojom::MojoCompositorFrameSinkClientPtr client_; | 80 cc::mojom::MojoCompositorFrameSinkClientPtr client_; |
82 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> | 81 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> |
83 compositor_frame_sink_private_binding_; | 82 compositor_frame_sink_private_binding_; |
84 | 83 |
85 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); | 84 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); |
86 }; | 85 }; |
87 | 86 |
88 } // namespace display_compositor | 87 } // namespace display_compositor |
89 | 88 |
90 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ | 89 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |