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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Invalidate a namespace that might still have associated sequences, 54 // Invalidate a namespace that might still have associated sequences,
55 // possibly because a renderer process has crashed. 55 // possibly because a renderer process has crashed.
56 void InvalidateSurfaceIdNamespace(uint32_t id_namespace); 56 void InvalidateSurfaceIdNamespace(uint32_t id_namespace);
57 57
58 private: 58 private:
59 void SearchForSatisfaction(); 59 void SearchForSatisfaction();
60 60
61 typedef base::hash_map<SurfaceId, Surface*> SurfaceMap; 61 typedef base::hash_map<SurfaceId, Surface*> SurfaceMap;
62 SurfaceMap surface_map_; 62 SurfaceMap surface_map_;
63 ObserverList<SurfaceDamageObserver> observer_list_; 63 base::ObserverList<SurfaceDamageObserver> observer_list_;
64 base::ThreadChecker thread_checker_; 64 base::ThreadChecker thread_checker_;
65 65
66 // List of surfaces to be destroyed, along with what sequences they're still 66 // List of surfaces to be destroyed, along with what sequences they're still
67 // waiting on. 67 // waiting on.
68 typedef std::list<Surface*> SurfaceDestroyList; 68 typedef std::list<Surface*> SurfaceDestroyList;
69 SurfaceDestroyList surfaces_to_destroy_; 69 SurfaceDestroyList surfaces_to_destroy_;
70 70
71 // Set of SurfaceSequences that have been satisfied by a frame but not yet 71 // Set of SurfaceSequences that have been satisfied by a frame but not yet
72 // waited on. 72 // waited on.
73 base::hash_set<SurfaceSequence> satisfied_sequences_; 73 base::hash_set<SurfaceSequence> satisfied_sequences_;
74 74
75 // Set of valid surface ID namespaces. When a namespace is removed from 75 // Set of valid surface ID namespaces. When a namespace is removed from
76 // this set, any remaining sequences with that namespace are considered 76 // this set, any remaining sequences with that namespace are considered
77 // satisfied. 77 // satisfied.
78 base::hash_set<uint32_t> valid_surface_id_namespaces_; 78 base::hash_set<uint32_t> valid_surface_id_namespaces_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(SurfaceManager); 80 DISALLOW_COPY_AND_ASSIGN(SurfaceManager);
81 }; 81 };
82 82
83 } // namespace cc 83 } // namespace cc
84 84
85 #endif // CC_SURFACES_SURFACE_MANAGER_H_ 85 #endif // CC_SURFACES_SURFACE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/animation/layer_animation_controller.h ('k') | chromeos/accelerometer/accelerometer_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698