| 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..7ed7f521703b7aa5323125a4d19adc46ea38a408 100644
|
| --- a/cc/surfaces/surface_id_allocator.cc
|
| +++ b/cc/surfaces/surface_id_allocator.cc
|
| @@ -12,17 +12,9 @@
|
| namespace cc {
|
|
|
| SurfaceIdAllocator::SurfaceIdAllocator(uint32_t client_id)
|
| - : client_id_(client_id), next_id_(1u), manager_(nullptr) {}
|
| -
|
| -void SurfaceIdAllocator::RegisterSurfaceClientId(SurfaceManager* manager) {
|
| - DCHECK(!manager_);
|
| - manager_ = manager;
|
| - manager_->RegisterSurfaceClientId(client_id_);
|
| -}
|
| + : client_id_(client_id), next_id_(1u) {}
|
|
|
| SurfaceIdAllocator::~SurfaceIdAllocator() {
|
| - if (manager_)
|
| - manager_->InvalidateSurfaceClientId(client_id_);
|
| }
|
|
|
| SurfaceId SurfaceIdAllocator::GenerateId() {
|
|
|