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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // FrameSinkManagerClient implementation. | 63 // FrameSinkManagerClient implementation. |
64 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; | 64 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; |
65 | 65 |
66 void EvictFrame(); | 66 void EvictFrame(); |
67 void SetNeedsBeginFrame(bool needs_begin_frame); | 67 void SetNeedsBeginFrame(bool needs_begin_frame); |
68 void BeginFrameDidNotSwap(const BeginFrameAck& ack); | 68 void BeginFrameDidNotSwap(const BeginFrameAck& ack); |
69 void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id, | 69 void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id, |
70 CompositorFrame frame); | 70 CompositorFrame frame); |
71 void RequestCopyOfSurface(std::unique_ptr<CopyOutputRequest> request); | 71 void RequestCopyOfSurface(std::unique_ptr<CopyOutputRequest> request); |
72 void ForceReclaimResources(); | |
73 void ClaimTemporaryReference(const SurfaceId& surface_id); | 72 void ClaimTemporaryReference(const SurfaceId& surface_id); |
74 | 73 |
75 protected: | 74 protected: |
76 CompositorFrameSinkSupport(CompositorFrameSinkSupportClient* client, | 75 CompositorFrameSinkSupport(CompositorFrameSinkSupportClient* client, |
77 const FrameSinkId& frame_sink_id, | 76 const FrameSinkId& frame_sink_id, |
78 bool is_root, | 77 bool is_root, |
79 bool handles_frame_sink_id_invalidation); | 78 bool handles_frame_sink_id_invalidation); |
80 | 79 |
81 void Init(SurfaceManager* surface_manager, bool needs_sync_points); | 80 void Init(SurfaceManager* surface_manager, bool needs_sync_points); |
82 | 81 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 const bool handles_frame_sink_id_invalidation_; | 144 const bool handles_frame_sink_id_invalidation_; |
146 | 145 |
147 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; | 146 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; |
148 | 147 |
149 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); | 148 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); |
150 }; | 149 }; |
151 | 150 |
152 } // namespace cc | 151 } // namespace cc |
153 | 152 |
154 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ | 153 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ |
OLD | NEW |