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

Unified Diff: ui/compositor/compositor.h

Issue 2175293003: cc: Register namespace hierarchy after ui::Compositor's SurfaceFactory available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit test and addressed comments Created 4 years, 5 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 | « content/browser/renderer_host/delegated_frame_host.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 05c3bcc93eca5df31894d4ea2df99eb154cc043a..d1b21ccc63051061390f119f5953d2460f8f1512 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -193,6 +193,12 @@ class COMPOSITOR_EXPORT Compositor
ui::ContextFactory* context_factory() { return context_factory_; }
+ void AddSurfaceClient(uint32_t client_id);
+ void RemoveSurfaceClient(uint32_t client_id);
+ const std::unordered_map<uint32_t, uint32_t>& SurfaceClientsForTesting() {
+ return surface_clients_;
+ }
+
void SetOutputSurface(std::unique_ptr<cc::OutputSurface> surface);
// Schedules a redraw of the layer tree associated with this compositor.
@@ -374,6 +380,7 @@ class COMPOSITOR_EXPORT Compositor
base::ObserverList<CompositorAnimationObserver> animation_observer_list_;
gfx::AcceleratedWidget widget_;
+ std::unordered_map<uint32_t, uint32_t> surface_clients_;
bool widget_valid_;
bool output_surface_requested_;
std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
« no previous file with comments | « content/browser/renderer_host/delegated_frame_host.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698