Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: cc/surfaces/compositor_frame_sink_support.h

Issue 2822143003: Remove ForceReclaimResources (Closed)
Patch Set: Change to RunLoop. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/output/compositor_frame_sink.h ('k') | cc/surfaces/compositor_frame_sink_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/output/compositor_frame_sink.h ('k') | cc/surfaces/compositor_frame_sink_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698