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

Unified Diff: cc/surfaces/surface_id_allocator.h

Issue 2382873002: Replace usage of SurfaceId's client_id with FrameSinkId (Closed)
Patch Set: Rebased Created 4 years, 2 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..e97b966ee4284b447df486afa50819de87b4ba34 100644
--- a/cc/surfaces/surface_id_allocator.h
+++ b/cc/surfaces/surface_id_allocator.h
@@ -18,15 +18,16 @@ 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_; }
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