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

Unified Diff: cc/surfaces/surface_manager.h

Issue 2731743002: Decouple FrameSink Hierarchy registration from SurfaceFactoryClient registration (Closed)
Patch Set: Fixed Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/surfaces/surface_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_manager.h
diff --git a/cc/surfaces/surface_manager.h b/cc/surfaces/surface_manager.h
index 569c6e44c0306d3ae694b4adb5a1dd1a918ccd7f..e4b6f17c5f6efd6e22edeca7795c5dfe9db6748d 100644
--- a/cc/surfaces/surface_manager.h
+++ b/cc/surfaces/surface_manager.h
@@ -251,14 +251,16 @@ class CC_SURFACES_EXPORT SurfaceManager {
FrameSinkSourceMapping();
FrameSinkSourceMapping(const FrameSinkSourceMapping& other);
~FrameSinkSourceMapping();
- bool is_empty() const { return !client && children.empty(); }
- // The client that's responsible for creating this namespace. Never null.
- SurfaceFactoryClient* client;
+ bool has_children() const { return !children.empty(); }
// The currently assigned begin frame source for this client.
BeginFrameSource* source;
// This represents a dag of parent -> children mapping.
std::vector<FrameSinkId> children;
};
+
+ std::unordered_map<FrameSinkId, SurfaceFactoryClient*, FrameSinkIdHash>
+ clients_;
+
std::unordered_map<FrameSinkId, FrameSinkSourceMapping, FrameSinkIdHash>
frame_sink_source_map_;
« no previous file with comments | « no previous file | cc/surfaces/surface_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698