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

Unified Diff: cc/surfaces/surface_id_allocator.cc

Issue 2136413002: Update Surface ID Terminology (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed webkit_unit_tests Created 4 years, 5 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 8b169a5fa7d47ec82450e03487d06e2a996131d4..9151400f3ce2107b81ac8a99256e70c043d5a3eb 100644
--- a/cc/surfaces/surface_id_allocator.cc
+++ b/cc/surfaces/surface_id_allocator.cc
@@ -11,24 +11,23 @@
namespace cc {
-SurfaceIdAllocator::SurfaceIdAllocator(uint32_t id_namespace)
- : id_namespace_(id_namespace), next_id_(1u), manager_(nullptr) {
-}
+SurfaceIdAllocator::SurfaceIdAllocator(uint32_t client_id)
+ : client_id_(client_id), next_id_(1u), manager_(nullptr) {}
-void SurfaceIdAllocator::RegisterSurfaceIdNamespace(SurfaceManager* manager) {
+void SurfaceIdAllocator::RegisterSurfaceClientId(SurfaceManager* manager) {
DCHECK(!manager_);
manager_ = manager;
- manager_->RegisterSurfaceIdNamespace(id_namespace_);
+ manager_->RegisterSurfaceClientId(client_id_);
}
SurfaceIdAllocator::~SurfaceIdAllocator() {
if (manager_)
- manager_->InvalidateSurfaceIdNamespace(id_namespace_);
+ manager_->InvalidateSurfaceClientId(client_id_);
}
SurfaceId SurfaceIdAllocator::GenerateId() {
uint64_t nonce = base::RandUint64();
- SurfaceId id(id_namespace_, next_id_, nonce);
+ SurfaceId id(client_id_, next_id_, nonce);
next_id_++;
return id;
}

Powered by Google App Engine
This is Rietveld 408576698