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

Unified Diff: cc/surfaces/surface_manager.h

Issue 2514033002: Introducing SurfaceReferenceFactory (Closed)
Patch Set: rebase 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
« no previous file with comments | « cc/surfaces/surface_info.h ('k') | 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 81ca648fc15b73516bb3c76ceab0b3eb85189b7e..a17d5a7717f9ad44596ebbe9d3a2c0b761a0479c 100644
--- a/cc/surfaces/surface_manager.h
+++ b/cc/surfaces/surface_manager.h
@@ -21,6 +21,7 @@
#include "cc/surfaces/frame_sink_id.h"
#include "cc/surfaces/surface_id.h"
#include "cc/surfaces/surface_observer.h"
+#include "cc/surfaces/surface_reference_factory.h"
#include "cc/surfaces/surface_reference_manager.h"
#include "cc/surfaces/surface_sequence.h"
#include "cc/surfaces/surfaces_export.h"
@@ -118,7 +119,9 @@ class CC_SURFACES_EXPORT SurfaceManager
size_t GetSurfaceReferenceCount(const SurfaceId& surface_id) const override;
size_t GetReferencedSurfaceCount(const SurfaceId& surface_id) const override;
- base::WeakPtr<SurfaceManager> GetWeakPtr();
+ scoped_refptr<SurfaceReferenceFactory> reference_factory() {
+ return reference_factory_;
+ }
private:
void RecursivelyAttachBeginFrameSource(const FrameSinkId& frame_sink_id,
@@ -199,6 +202,10 @@ class CC_SURFACES_EXPORT SurfaceManager
// with this id, it's for bookkeeping purposes only.
const SurfaceId root_surface_id_;
+ // The DirectSurfaceReferenceFactory that uses this manager to create surface
+ // references.
+ scoped_refptr<SurfaceReferenceFactory> reference_factory_;
+
base::WeakPtrFactory<SurfaceManager> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(SurfaceManager);
« no previous file with comments | « cc/surfaces/surface_info.h ('k') | cc/surfaces/surface_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698