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

Unified Diff: cc/surfaces/framesink_manager.h

Issue 2824053003: Split SurfaceFactoryClient Into Four Interfaces (Closed)
Patch Set: Address Nits Created 3 years, 8 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 | « cc/surfaces/compositor_frame_sink_support.cc ('k') | cc/surfaces/framesink_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/framesink_manager.h
diff --git a/cc/surfaces/framesink_manager.h b/cc/surfaces/framesink_manager.h
index 087126c1fb28361da98709cafc236eda18a0bcbe..bcecb8a220d85900ae42f7cbadc44f7758c2a2d4 100644
--- a/cc/surfaces/framesink_manager.h
+++ b/cc/surfaces/framesink_manager.h
@@ -18,7 +18,7 @@
namespace cc {
class BeginFrameSource;
-class SurfaceFactoryClient;
+class FrameSinkManagerClient;
namespace test {
class CompositorFrameSinkSupportTest;
@@ -43,12 +43,12 @@ class CC_SURFACES_EXPORT FrameSinkManager {
// However, DelegatedFrameHost can register itself as a client before its
// relationship with the ui::Compositor is known.
- // Associates a SurfaceFactoryClient with the frame_sink_id it uses.
- // SurfaceFactoryClient and framesink allocators have a 1:1 mapping.
+ // Associates a FrameSinkManagerClient with the frame_sink_id it uses.
+ // FrameSinkManagerClient and framesink allocators have a 1:1 mapping.
// Caller guarantees the client is alive between register/unregister.
- void RegisterSurfaceFactoryClient(const FrameSinkId& frame_sink_id,
- SurfaceFactoryClient* client);
- void UnregisterSurfaceFactoryClient(const FrameSinkId& frame_sink_id);
+ void RegisterFrameSinkManagerClient(const FrameSinkId& frame_sink_id,
+ FrameSinkManagerClient* client);
+ void UnregisterFrameSinkManagerClient(const FrameSinkId& frame_sink_id);
// Associates a |source| with a particular framesink. That framesink and
// any children of that framesink with valid clients can potentially use
@@ -103,7 +103,7 @@ class CC_SURFACES_EXPORT FrameSinkManager {
std::vector<FrameSinkId> children;
};
- std::unordered_map<FrameSinkId, SurfaceFactoryClient*, FrameSinkIdHash>
+ std::unordered_map<FrameSinkId, FrameSinkManagerClient*, FrameSinkIdHash>
clients_;
std::unordered_map<FrameSinkId, FrameSinkSourceMapping, FrameSinkIdHash>
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support.cc ('k') | cc/surfaces/framesink_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698