OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ | 5 #ifndef CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ |
6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ | 6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <unordered_set> | 9 #include <unordered_set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } | 52 } |
53 | 53 |
54 // SurfaceResourceHolderClient implementation. | 54 // SurfaceResourceHolderClient implementation. |
55 void ReturnResources(const ReturnedResourceArray& resources) override; | 55 void ReturnResources(const ReturnedResourceArray& resources) override; |
56 | 56 |
57 // FrameSinkManagerClient implementation. | 57 // FrameSinkManagerClient implementation. |
58 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; | 58 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; |
59 | 59 |
60 void EvictCurrentSurface(); | 60 void EvictCurrentSurface(); |
61 void SetNeedsBeginFrame(bool needs_begin_frame); | 61 void SetNeedsBeginFrame(bool needs_begin_frame); |
62 void BeginFrameDidNotSwap(const BeginFrameAck& ack); | 62 void BeginFrameDidNotProduceFrame(const BeginFrameAck& ack); |
63 void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id, | 63 void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id, |
64 CompositorFrame frame); | 64 CompositorFrame frame); |
65 void RequestCopyOfSurface(std::unique_ptr<CopyOutputRequest> request); | 65 void RequestCopyOfSurface(std::unique_ptr<CopyOutputRequest> request); |
66 void ClaimTemporaryReference(const SurfaceId& surface_id); | 66 void ClaimTemporaryReference(const SurfaceId& surface_id); |
67 | 67 |
68 // TODO(staraz): Move the following 3 methods to private. | 68 // TODO(staraz): Move the following 3 methods to private. |
69 void ReceiveFromChild(const TransferableResourceArray& resources); | 69 void ReceiveFromChild(const TransferableResourceArray& resources); |
70 void RefResources(const TransferableResourceArray& resources); | 70 void RefResources(const TransferableResourceArray& resources); |
71 void UnrefResources(const ReturnedResourceArray& resources); | 71 void UnrefResources(const ReturnedResourceArray& resources); |
72 | 72 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 const bool handles_frame_sink_id_invalidation_; | 156 const bool handles_frame_sink_id_invalidation_; |
157 | 157 |
158 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; | 158 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; |
159 | 159 |
160 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); | 160 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); |
161 }; | 161 }; |
162 | 162 |
163 } // namespace cc | 163 } // namespace cc |
164 | 164 |
165 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ | 165 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ |
OLD | NEW |