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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 48 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
49 cc::CompositorFrame frame) override; | 49 cc::CompositorFrame frame) override; |
50 void Require(const cc::LocalSurfaceId& local_surface_id, | 50 void Require(const cc::LocalSurfaceId& local_surface_id, |
51 const cc::SurfaceSequence& sequence) override; | 51 const cc::SurfaceSequence& sequence) override; |
52 void Satisfy(const cc::SurfaceSequence& sequence) override; | 52 void Satisfy(const cc::SurfaceSequence& sequence) override; |
53 | 53 |
54 // cc::mojom::MojoCompositorFrameSinkPrivate: | 54 // cc::mojom::MojoCompositorFrameSinkPrivate: |
55 void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override; | 55 void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override; |
56 void RemoveChildFrameSink( | 56 void RemoveChildFrameSink( |
57 const cc::FrameSinkId& child_frame_sink_id) override; | 57 const cc::FrameSinkId& child_frame_sink_id) override; |
| 58 void RequestCopyOfSurface( |
| 59 std::unique_ptr<cc::CopyOutputRequest> request, |
| 60 const RequestCopyOfSurfaceCallback& callback) override; |
| 61 void ReleaseCopyOfSurface(const gpu::Mailbox& mailbox, |
| 62 const ::gpu::SyncToken& sync_token, |
| 63 bool is_lost) override; |
58 | 64 |
59 protected: | 65 protected: |
60 void OnClientConnectionLost(); | 66 void OnClientConnectionLost(); |
61 void OnPrivateConnectionLost(); | 67 void OnPrivateConnectionLost(); |
62 | 68 |
63 GpuCompositorFrameSinkDelegate* const delegate_; | 69 GpuCompositorFrameSinkDelegate* const delegate_; |
64 cc::CompositorFrameSinkSupport support_; | 70 cc::CompositorFrameSinkSupport support_; |
65 cc::SurfaceManager* const surface_manager_; | 71 cc::SurfaceManager* const surface_manager_; |
66 | 72 |
67 private: | 73 private: |
(...skipping 13 matching lines...) Expand all Loading... |
81 cc::mojom::MojoCompositorFrameSinkClientPtr client_; | 87 cc::mojom::MojoCompositorFrameSinkClientPtr client_; |
82 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> | 88 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> |
83 compositor_frame_sink_private_binding_; | 89 compositor_frame_sink_private_binding_; |
84 | 90 |
85 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); | 91 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); |
86 }; | 92 }; |
87 | 93 |
88 } // namespace display_compositor | 94 } // namespace display_compositor |
89 | 95 |
90 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ | 96 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |