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

Unified Diff: cc/surfaces/surface_id_allocator.cc

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.cc
diff --git a/cc/surfaces/surface_id_allocator.cc b/cc/surfaces/surface_id_allocator.cc
index 84523e130561818b6a4e4cf5574d63e00fbecb3b..8c78e83422877b8d660741288835448d1654b772 100644
--- a/cc/surfaces/surface_id_allocator.cc
+++ b/cc/surfaces/surface_id_allocator.cc
@@ -16,10 +16,10 @@ SurfaceIdAllocator::SurfaceIdAllocator() : next_id_(1u) {}
SurfaceIdAllocator::~SurfaceIdAllocator() {
}
-LocalSurfaceId SurfaceIdAllocator::GenerateId() {
- LocalSurfaceId id(next_id_, base::UnguessableToken::Create());
- next_id_++;
- return id;
+const LocalSurfaceId& SurfaceIdAllocator::GenerateId() {
vmpstr 2017/02/07 22:46:20 Why this change?
Fady Samuel 2017/02/08 00:52:50 It's not necessary for now. I've reverted it.
+ current_local_surface_id_ =
+ LocalSurfaceId(next_id_++, base::UnguessableToken::Create());
+ return current_local_surface_id_;
}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698