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

Unified Diff: ui/compositor/compositor.h

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 3 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: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 288f0bbec27910bfd5c52323fc86e265b7f7acd6..58b8224ab19b7fdbf051e25bee5e3b090d7937f1 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -136,7 +136,7 @@ class COMPOSITOR_EXPORT ContextFactory {
virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0;
// Allocate a new client ID for the display compositor.
- virtual uint32_t AllocateSurfaceClientId() = 0;
+ virtual cc::FrameSinkId AllocateFrameSinkId() = 0;
// Gets the surface manager.
virtual cc::SurfaceManager* GetSurfaceManager() = 0;
@@ -210,8 +210,8 @@ class COMPOSITOR_EXPORT Compositor
ui::ContextFactory* context_factory() { return context_factory_; }
- void AddSurfaceClient(uint32_t client_id);
- void RemoveSurfaceClient(uint32_t client_id);
+ void AddFrameSink(const cc::FrameSinkId& frame_sink_id);
+ void RemoveFrameSink(const cc::FrameSinkId& frame_sink_id);
void SetCompositorFrameSink(std::unique_ptr<cc::CompositorFrameSink> surface);
@@ -413,7 +413,8 @@ class COMPOSITOR_EXPORT Compositor
ui::Window* window_;
#endif
// A map from child id to parent id.
- std::unordered_map<uint32_t, uint32_t> surface_clients_;
+ std::unordered_map<cc::FrameSinkId, cc::FrameSinkId, cc::FrameSinkIdHash>
+ frame_sinks_;
bool widget_valid_;
bool compositor_frame_sink_requested_;
std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698