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

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

Issue 2822143003: Remove ForceReclaimResources (Closed)
Patch Set: Rebase. Created 3 years, 8 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698