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

Unified Diff: components/mus/ws/server_window_surface_manager.h

Issue 1673783004: Hook up BeginFrameSource to SurfaceFactoryClient via SurfaceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile Created 4 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
Index: components/mus/ws/server_window_surface_manager.h
diff --git a/components/mus/ws/server_window_surface_manager.h b/components/mus/ws/server_window_surface_manager.h
index a56827f69477d006f102a405bc915de68cab2cd9..872e47790f5dbca1e5e1d9c2801cd45575e7ee55 100644
--- a/components/mus/ws/server_window_surface_manager.h
+++ b/components/mus/ws/server_window_surface_manager.h
@@ -43,13 +43,17 @@ class ServerWindowSurfaceManager {
ServerWindowSurface* GetDefaultSurface();
ServerWindowSurface* GetUnderlaySurface();
ServerWindowSurface* GetSurfaceByType(mojom::SurfaceType type);
- bool HasSurfaceOfType(mojom::SurfaceType type);
+ bool HasSurfaceOfType(mojom::SurfaceType type) const;
+ bool HasAnySurface();
+
+ uint32_t id_namespace() const { return surface_id_allocator_.id_namespace(); }
+ cc::SurfaceManager* GetSurfaceManager();
private:
friend class ServerWindowSurfaceManagerTestApi;
friend class ServerWindowSurface;
- // Returns true if a surface of |type| has been set and it's size is greater
+ // Returns true if a surface of |type| has been set and its size is greater
// than the size of the window.
bool IsSurfaceReadyAndNonEmpty(mojom::SurfaceType type) const;

Powered by Google App Engine
This is Rietveld 408576698