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

Unified Diff: cc/surfaces/surface_id_allocator.h

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: Only create ClientSurfaceEmbedder if window is visible. Trash it otherwise. Created 3 years, 11 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 8d2d79f025ec57e792c8e62ec7fad1bbcfd4529c..ab270a22b69be1eae930366c488bf4f287d27040 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();
- LocalFrameId GenerateId();
+ const LocalFrameId& GenerateId();
+
+ const LocalFrameId& current_local_frame_id() const {
+ return current_local_frame_id_;
+ }
private:
uint32_t next_id_;
+ LocalFrameId current_local_frame_id_;
DISALLOW_COPY_AND_ASSIGN(SurfaceIdAllocator);
};

Powered by Google App Engine
This is Rietveld 408576698