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

Unified Diff: cc/surfaces/surface_id_allocator.cc

Issue 2388753003: Introduce cc::LocalFrameId and use in SurfaceFactory (Closed)
Patch Set: Fix exo_unittests 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
Index: cc/surfaces/surface_id_allocator.cc
diff --git a/cc/surfaces/surface_id_allocator.cc b/cc/surfaces/surface_id_allocator.cc
index dfd079d3e5636dcee55f4db758c4de974b924584..af4d5932df723a6da76dc79377e0430248785966 100644
--- a/cc/surfaces/surface_id_allocator.cc
+++ b/cc/surfaces/surface_id_allocator.cc
@@ -10,15 +10,14 @@
namespace cc {
-SurfaceIdAllocator::SurfaceIdAllocator(const FrameSinkId& frame_sink_id)
- : frame_sink_id_(frame_sink_id), next_id_(1u) {}
+SurfaceIdAllocator::SurfaceIdAllocator() : next_id_(1u) {}
SurfaceIdAllocator::~SurfaceIdAllocator() {
}
-SurfaceId SurfaceIdAllocator::GenerateId() {
+LocalFrameId SurfaceIdAllocator::GenerateId() {
uint64_t nonce = base::RandUint64();
- SurfaceId id(frame_sink_id_, next_id_, nonce);
+ LocalFrameId id(next_id_, nonce);
next_id_++;
return id;
}

Powered by Google App Engine
This is Rietveld 408576698