| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; | 56 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; |
| 57 void WillDrawSurface(const LocalSurfaceId& local_surface_id, | 57 void WillDrawSurface(const LocalSurfaceId& local_surface_id, |
| 58 const gfx::Rect& damage_rect) override; | 58 const gfx::Rect& damage_rect) override; |
| 59 | 59 |
| 60 void EvictFrame(); | 60 void EvictFrame(); |
| 61 void SetNeedsBeginFrame(bool needs_begin_frame); | 61 void SetNeedsBeginFrame(bool needs_begin_frame); |
| 62 void BeginFrameDidNotSwap(const BeginFrameAck& ack); | 62 void BeginFrameDidNotSwap(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 ForceReclaimResources(); | |
| 67 void ClaimTemporaryReference(const SurfaceId& surface_id); | 66 void ClaimTemporaryReference(const SurfaceId& surface_id); |
| 68 | 67 |
| 69 protected: | 68 protected: |
| 70 CompositorFrameSinkSupport(CompositorFrameSinkSupportClient* client, | 69 CompositorFrameSinkSupport(CompositorFrameSinkSupportClient* client, |
| 71 const FrameSinkId& frame_sink_id, | 70 const FrameSinkId& frame_sink_id, |
| 72 bool is_root, | 71 bool is_root, |
| 73 bool handles_frame_sink_id_invalidation); | 72 bool handles_frame_sink_id_invalidation); |
| 74 | 73 |
| 75 void Init(SurfaceManager* surface_manager, bool needs_sync_points); | 74 void Init(SurfaceManager* surface_manager, bool needs_sync_points); |
| 76 | 75 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 const bool handles_frame_sink_id_invalidation_; | 136 const bool handles_frame_sink_id_invalidation_; |
| 138 | 137 |
| 139 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; | 138 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; |
| 140 | 139 |
| 141 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); | 140 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); |
| 142 }; | 141 }; |
| 143 | 142 |
| 144 } // namespace cc | 143 } // namespace cc |
| 145 | 144 |
| 146 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ | 145 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ |
| OLD | NEW |