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

Unified Diff: cc/surfaces/surface_id_allocator.cc

Issue 2379653006: Replaced cc::SurfaceId::nonce_ with base::UnguessableToken (Closed)
Patch Set: Moved include statement from surface_id_struct_traits.h to local_frame_id_struct_traits.h 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 af4d5932df723a6da76dc79377e0430248785966..f774e96f8856bff0425e9a7e2e64a919f5e86c4b 100644
--- a/cc/surfaces/surface_id_allocator.cc
+++ b/cc/surfaces/surface_id_allocator.cc
@@ -16,8 +16,7 @@ SurfaceIdAllocator::~SurfaceIdAllocator() {
}
LocalFrameId SurfaceIdAllocator::GenerateId() {
- uint64_t nonce = base::RandUint64();
- LocalFrameId id(next_id_, nonce);
+ LocalFrameId id(next_id_);
next_id_++;
return id;
}

Powered by Google App Engine
This is Rietveld 408576698