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

Unified Diff: cc/surfaces/surface_manager.h

Issue 2541683004: Add/remove surface references via MojoCompositorFrameSink. (Closed)
Patch Set: WIP Created 4 years 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
Index: cc/surfaces/surface_manager.h
diff --git a/cc/surfaces/surface_manager.h b/cc/surfaces/surface_manager.h
index 9e6144bf6879252c5b53fe90f5fdbf4c872a39bc..190c722bea5c393cd451ef320168092367074c44 100644
--- a/cc/surfaces/surface_manager.h
+++ b/cc/surfaces/surface_manager.h
@@ -103,6 +103,8 @@ class CC_SURFACES_EXPORT SurfaceManager
void UnregisterFrameSinkHierarchy(const FrameSinkId& parent_frame_sink_id,
const FrameSinkId& child_frame_sink_id);
+ void PrintReferenceTree(const std::string& name);
+
// SurfaceReferenceManager:
const SurfaceId& GetRootSurfaceId() const override;
void AddSurfaceReference(const SurfaceId& parent_id,
@@ -113,6 +115,10 @@ class CC_SURFACES_EXPORT SurfaceManager
size_t GetReferencedSurfaceCount(const SurfaceId& surface_id) const override;
private:
+ void PrintReferenceTreeImpl(const SurfaceId& surface_id,
+ std::string indent,
+ std::string* str);
+
void RecursivelyAttachBeginFrameSource(const FrameSinkId& frame_sink_id,
BeginFrameSource* source);
void RecursivelyDetachBeginFrameSource(const FrameSinkId& frame_sink_id,
@@ -183,7 +189,7 @@ class CC_SURFACES_EXPORT SurfaceManager
// Root SurfaceId that references display root surfaces. There is no Surface
// with this id, it's for bookkeeping purposes only.
- const SurfaceId kRootSurfaceId;
+ const SurfaceId root_surface_id_;
DISALLOW_COPY_AND_ASSIGN(SurfaceManager);
};

Powered by Google App Engine
This is Rietveld 408576698