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

Unified Diff: cc/surfaces/surface_id_allocator.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
« no previous file with comments | « cc/surfaces/surface_id.h ('k') | cc/surfaces/surface_id_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_id_allocator.h
diff --git a/cc/surfaces/surface_id_allocator.h b/cc/surfaces/surface_id_allocator.h
index b5eef8b52dcc1b018e0877b415f7b473a2ff94e4..b6a599a418c823252a3120ef4c25aa870cb275b3 100644
--- a/cc/surfaces/surface_id_allocator.h
+++ b/cc/surfaces/surface_id_allocator.h
@@ -18,15 +18,20 @@ namespace cc {
// class in a mutex.
class CC_SURFACES_EXPORT SurfaceIdAllocator {
public:
- explicit SurfaceIdAllocator(uint32_t client_id);
+ explicit SurfaceIdAllocator(const FrameSinkId& frame_sink_id);
~SurfaceIdAllocator();
SurfaceId GenerateId();
- uint32_t client_id() const { return client_id_; }
+ const FrameSinkId& frame_sink_id() const { return frame_sink_id_; }
+
+ uint32_t client_id() const { return frame_sink_id_.client_id(); }
+
+ uint32_t sink_id() const { return frame_sink_id_.sink_id(); }
private:
- const uint32_t client_id_;
+ const FrameSinkId frame_sink_id_;
+
uint32_t next_id_;
DISALLOW_COPY_AND_ASSIGN(SurfaceIdAllocator);
« no previous file with comments | « cc/surfaces/surface_id.h ('k') | cc/surfaces/surface_id_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698