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); |