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

Unified Diff: cc/surfaces/surface_id_allocator.h

Issue 2676373004: Implement service-side surface synchronization (Closed)
Patch Set: DisplayCompositorLockManager => SurfaceDependencyTracker. Added More Comments Created 3 years, 10 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: cc/surfaces/surface_id_allocator.h
diff --git a/cc/surfaces/surface_id_allocator.h b/cc/surfaces/surface_id_allocator.h
index 49362cfffd805cf08c56e517e454b83d1fff724a..7160834dbdb10ee7d6b62005ec8e384802731ac0 100644
--- a/cc/surfaces/surface_id_allocator.h
+++ b/cc/surfaces/surface_id_allocator.h
@@ -21,10 +21,15 @@ class CC_SURFACES_EXPORT SurfaceIdAllocator {
SurfaceIdAllocator();
~SurfaceIdAllocator();
- LocalSurfaceId GenerateId();
+ const LocalSurfaceId& GenerateId();
+
+ const LocalSurfaceId& current_local_surface_id() const {
+ return current_local_surface_id_;
+ }
private:
uint32_t next_id_;
+ LocalSurfaceId current_local_surface_id_;
DISALLOW_COPY_AND_ASSIGN(SurfaceIdAllocator);
};

Powered by Google App Engine
This is Rietveld 408576698