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

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

Issue 2854163003: [cc] Plumb BeginFrameAcks through SurfaceManager to DisplayScheduler. (Closed)
Patch Set: Track state per surface. 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SURFACE_MANAGER_H_ 5 #ifndef CC_SURFACES_SURFACE_MANAGER_H_
6 #define CC_SURFACES_SURFACE_MANAGER_H_ 6 #define CC_SURFACES_SURFACE_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // Called when the dependencies of a pending CompositorFrame within |surface| 94 // Called when the dependencies of a pending CompositorFrame within |surface|
95 // has changed. 95 // has changed.
96 void SurfaceDependenciesChanged( 96 void SurfaceDependenciesChanged(
97 Surface* surface, 97 Surface* surface,
98 const base::flat_set<SurfaceId>& added_dependencies, 98 const base::flat_set<SurfaceId>& added_dependencies,
99 const base::flat_set<SurfaceId>& removed_dependencies); 99 const base::flat_set<SurfaceId>& removed_dependencies);
100 100
101 // Called when |surface| is being destroyed. 101 // Called when |surface| is being destroyed.
102 void SurfaceDiscarded(Surface* surface); 102 void SurfaceDiscarded(Surface* surface);
103 103
104 // Called when the state of a Surface's CompositorFrame producer has changed.
105 void SurfaceProducerStateChanged(Surface* surface,
106 Surface::ProducerState state);
107
104 // Require that the given sequence number must be satisfied (using 108 // Require that the given sequence number must be satisfied (using
105 // SatisfySequence) before the given surface can be destroyed. 109 // SatisfySequence) before the given surface can be destroyed.
106 void RequireSequence(const SurfaceId& surface_id, 110 void RequireSequence(const SurfaceId& surface_id,
107 const SurfaceSequence& sequence); 111 const SurfaceSequence& sequence);
108 112
109 // Satisfies the given sequence number. Once all sequence numbers that 113 // Satisfies the given sequence number. Once all sequence numbers that
110 // a surface depends on are satisfied, the surface can be destroyed. 114 // a surface depends on are satisfied, the surface can be destroyed.
111 void SatisfySequence(const SurfaceSequence& sequence); 115 void SatisfySequence(const SurfaceSequence& sequence);
112 116
113 void RegisterFrameSinkId(const FrameSinkId& frame_sink_id); 117 void RegisterFrameSinkId(const FrameSinkId& frame_sink_id);
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 std::unique_ptr<SurfaceDependencyTracker> dependency_tracker_; 295 std::unique_ptr<SurfaceDependencyTracker> dependency_tracker_;
292 296
293 base::WeakPtrFactory<SurfaceManager> weak_factory_; 297 base::WeakPtrFactory<SurfaceManager> weak_factory_;
294 298
295 DISALLOW_COPY_AND_ASSIGN(SurfaceManager); 299 DISALLOW_COPY_AND_ASSIGN(SurfaceManager);
296 }; 300 };
297 301
298 } // namespace cc 302 } // namespace cc
299 303
300 #endif // CC_SURFACES_SURFACE_MANAGER_H_ 304 #endif // CC_SURFACES_SURFACE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698