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

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

Issue 2614423003: Adding SatisfySequence and RequireSequence to SurfaceManager (Closed)
Patch Set: Created 3 years, 11 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void RemoveObserver(SurfaceObserver* obs) { 56 void RemoveObserver(SurfaceObserver* obs) {
57 observer_list_.RemoveObserver(obs); 57 observer_list_.RemoveObserver(obs);
58 } 58 }
59 59
60 bool SurfaceModified(const SurfaceId& surface_id); 60 bool SurfaceModified(const SurfaceId& surface_id);
61 61
62 // Called when a CompositorFrame is submitted to a SurfaceFactory for a given 62 // Called when a CompositorFrame is submitted to a SurfaceFactory for a given
63 // |surface_id| for the first time. 63 // |surface_id| for the first time.
64 void SurfaceCreated(const SurfaceInfo& surface_info); 64 void SurfaceCreated(const SurfaceInfo& surface_info);
65 65
66 // A frame for a surface satisfies a set of sequence numbers in a particular 66 void RequireSequence(const SurfaceId& surface_id,
danakj 2017/01/09 19:07:43 Can you document these methods?
67 // id namespace. 67 const SurfaceSequence& sequence);
68 void DidSatisfySequences(const FrameSinkId& frame_sink_id, 68
69 std::vector<uint32_t>* sequence); 69 void SatisfySequence(const SurfaceSequence& sequence);
70 70
71 void RegisterFrameSinkId(const FrameSinkId& frame_sink_id); 71 void RegisterFrameSinkId(const FrameSinkId& frame_sink_id);
72 72
73 // Invalidate a frame_sink_id that might still have associated sequences, 73 // Invalidate a frame_sink_id that might still have associated sequences,
74 // possibly because a renderer process has crashed. 74 // possibly because a renderer process has crashed.
75 void InvalidateFrameSinkId(const FrameSinkId& frame_sink_id); 75 void InvalidateFrameSinkId(const FrameSinkId& frame_sink_id);
76 76
77 // SurfaceFactoryClient, hierarchy, and BeginFrameSource can be registered 77 // SurfaceFactoryClient, hierarchy, and BeginFrameSource can be registered
78 // and unregistered in any order with respect to each other. 78 // and unregistered in any order with respect to each other.
79 // 79 //
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 scoped_refptr<SurfaceReferenceFactory> reference_factory_; 205 scoped_refptr<SurfaceReferenceFactory> reference_factory_;
206 206
207 base::WeakPtrFactory<SurfaceManager> weak_factory_; 207 base::WeakPtrFactory<SurfaceManager> weak_factory_;
208 208
209 DISALLOW_COPY_AND_ASSIGN(SurfaceManager); 209 DISALLOW_COPY_AND_ASSIGN(SurfaceManager);
210 }; 210 };
211 211
212 } // namespace cc 212 } // namespace cc
213 213
214 #endif // CC_SURFACES_SURFACE_MANAGER_H_ 214 #endif // CC_SURFACES_SURFACE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698