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

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

Issue 2755463002: [cc] Fix CompositorFrameSinkSupport BeginFrameAck interface. (Closed)
Patch Set: sync Created 3 years, 9 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/begin_frame_args.cc ('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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 Surface* current_surface_for_testing() { 42 Surface* current_surface_for_testing() {
43 return surface_factory_.current_surface_for_testing(); 43 return surface_factory_.current_surface_for_testing();
44 } 44 }
45 45
46 const ReferencedSurfaceTracker& ReferenceTrackerForTesting() const { 46 const ReferencedSurfaceTracker& ReferenceTrackerForTesting() const {
47 return reference_tracker_; 47 return reference_tracker_;
48 } 48 }
49 49
50 void EvictFrame(); 50 void EvictFrame();
51 void SetNeedsBeginFrame(bool needs_begin_frame); 51 void SetNeedsBeginFrame(bool needs_begin_frame);
52 void DidFinishFrame(const BeginFrameAck& ack); 52 void BeginFrameDidNotSwap(const BeginFrameAck& ack);
53 void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id, 53 void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id,
54 CompositorFrame frame); 54 CompositorFrame frame);
55 void RequestCopyOfSurface(std::unique_ptr<CopyOutputRequest> request); 55 void RequestCopyOfSurface(std::unique_ptr<CopyOutputRequest> request);
56 void ForceReclaimResources(); 56 void ForceReclaimResources();
57 void ClaimTemporaryReference(const SurfaceId& surface_id); 57 void ClaimTemporaryReference(const SurfaceId& surface_id);
58 58
59 private: 59 private:
60 // Update surface references with SurfaceManager for current CompositorFrame 60 // Update surface references with SurfaceManager for current CompositorFrame
61 // that has |local_surface_id|. UpdateReferences() must be called on 61 // that has |local_surface_id|. UpdateReferences() must be called on
62 // |reference_tracker_| before calling this. Will add and remove top-level 62 // |reference_tracker_| before calling this. Will add and remove top-level
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const bool handles_frame_sink_id_invalidation_; 129 const bool handles_frame_sink_id_invalidation_;
130 130
131 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; 131 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_;
132 132
133 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); 133 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport);
134 }; 134 };
135 135
136 } // namespace cc 136 } // namespace cc
137 137
138 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ 138 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_
OLDNEW
« no previous file with comments | « cc/output/begin_frame_args.cc ('k') | cc/surfaces/compositor_frame_sink_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698