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

Unified Diff: cc/surfaces/surface_id_allocator.cc

Issue 2379653006: Replaced cc::SurfaceId::nonce_ with base::UnguessableToken (Closed)
Patch Set: Created 4 years, 3 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 330b3c3247299f95da6ef235c112e8759469adc9..a3bc70da667654bc28dec1f385de17bf768300e1 100644
--- a/cc/surfaces/surface_id_allocator.cc
+++ b/cc/surfaces/surface_id_allocator.cc
@@ -6,8 +6,6 @@
#include <stdint.h>
-#include "base/rand_util.h"
-
namespace cc {
SurfaceIdAllocator::SurfaceIdAllocator(uint32_t client_id)
@@ -17,8 +15,7 @@ SurfaceIdAllocator::~SurfaceIdAllocator() {
}
SurfaceId SurfaceIdAllocator::GenerateId() {
- uint64_t nonce = base::RandUint64();
- SurfaceId id(client_id_, next_id_, nonce);
+ SurfaceId id(client_id_, next_id_);
next_id_++;
return id;
}

Powered by Google App Engine
This is Rietveld 408576698