Index: cc/surfaces/surface_id_allocator.cc |
diff --git a/cc/surfaces/surface_id_allocator.cc b/cc/surfaces/surface_id_allocator.cc |
index 9151400f3ce2107b81ac8a99256e70c043d5a3eb..b4bbb6bf9da63b8d9ec5b9fd56e2090f745e3e5b 100644 |
--- a/cc/surfaces/surface_id_allocator.cc |
+++ b/cc/surfaces/surface_id_allocator.cc |
@@ -12,18 +12,9 @@ |
namespace cc { |
SurfaceIdAllocator::SurfaceIdAllocator(uint32_t client_id) |
- : client_id_(client_id), next_id_(1u), manager_(nullptr) {} |
+ : client_id_(client_id), next_id_(1u) {} |
-void SurfaceIdAllocator::RegisterSurfaceClientId(SurfaceManager* manager) { |
- DCHECK(!manager_); |
- manager_ = manager; |
- manager_->RegisterSurfaceClientId(client_id_); |
-} |
- |
-SurfaceIdAllocator::~SurfaceIdAllocator() { |
- if (manager_) |
- manager_->InvalidateSurfaceClientId(client_id_); |
-} |
+SurfaceIdAllocator::~SurfaceIdAllocator() = default; |
SurfaceId SurfaceIdAllocator::GenerateId() { |
uint64_t nonce = base::RandUint64(); |