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

Unified Diff: cc/surfaces/surface_id_allocator.h

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.h
diff --git a/cc/surfaces/surface_id_allocator.h b/cc/surfaces/surface_id_allocator.h
index 3e1bbc796ee53a38635306868b8b736214125080..c77f3595dbb1657a55808c16e2202f577ff42e84 100644
--- a/cc/surfaces/surface_id_allocator.h
+++ b/cc/surfaces/surface_id_allocator.h
@@ -20,7 +20,7 @@ class SurfaceManager;
// class in a mutex.
class CC_SURFACES_EXPORT SurfaceIdAllocator {
public:
- explicit SurfaceIdAllocator(uint32_t id_namespace);
+ explicit SurfaceIdAllocator(uint32_t client_id);
~SurfaceIdAllocator();
SurfaceId GenerateId();
@@ -31,16 +31,16 @@ class CC_SURFACES_EXPORT SurfaceIdAllocator {
// automatically invalidated and any remaining sequences with that
// namespace will be ignored. This method does not need to be called in
// contexts where there is no SurfaceManager (e.g. a renderer process).
- void RegisterSurfaceIdNamespace(SurfaceManager* manager);
+ void RegisterSurfaceClientId(SurfaceManager* manager);
- uint32_t id_namespace() const { return id_namespace_; }
+ uint32_t client_id() const { return client_id_; }
// SurfaceIdAllocator's owner can call this when it find out that
// SurfaceManager is no longer alive during destruction.
void DidDestroySurfaceManager() { manager_ = nullptr; }
private:
- const uint32_t id_namespace_;
+ const uint32_t client_id_;
uint32_t next_id_;
SurfaceManager* manager_;

Powered by Google App Engine
This is Rietveld 408576698