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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 ~GpuCompositorFrameSink() override; | 43 ~GpuCompositorFrameSink() override; |
44 | 44 |
45 // cc::mojom::MojoCompositorFrameSink: | 45 // cc::mojom::MojoCompositorFrameSink: |
46 void EvictFrame() override; | 46 void EvictFrame() override; |
47 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 47 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
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 void RequestCopyOfSurface( |
| 54 std::unique_ptr<cc::CopyOutputRequest> request, |
| 55 const RequestCopyOfSurfaceCallback& callback) override; |
| 56 void DeleteMailbox(const gpu::Mailbox& mailbox, |
| 57 const ::gpu::SyncToken& sync_token, |
| 58 bool is_lost) override; |
53 | 59 |
54 // cc::mojom::MojoCompositorFrameSinkPrivate: | 60 // cc::mojom::MojoCompositorFrameSinkPrivate: |
55 void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override; | 61 void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override; |
56 void RemoveChildFrameSink( | 62 void RemoveChildFrameSink( |
57 const cc::FrameSinkId& child_frame_sink_id) override; | 63 const cc::FrameSinkId& child_frame_sink_id) override; |
58 | 64 |
59 protected: | 65 protected: |
60 void OnClientConnectionLost(); | 66 void OnClientConnectionLost(); |
61 void OnPrivateConnectionLost(); | 67 void OnPrivateConnectionLost(); |
62 | 68 |
(...skipping 18 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 |