| Index: cc/surfaces/surface_id_allocator.h
|
| diff --git a/cc/surfaces/surface_id_allocator.h b/cc/surfaces/surface_id_allocator.h
|
| index 49362cfffd805cf08c56e517e454b83d1fff724a..7160834dbdb10ee7d6b62005ec8e384802731ac0 100644
|
| --- a/cc/surfaces/surface_id_allocator.h
|
| +++ b/cc/surfaces/surface_id_allocator.h
|
| @@ -21,10 +21,15 @@ class CC_SURFACES_EXPORT SurfaceIdAllocator {
|
| SurfaceIdAllocator();
|
| ~SurfaceIdAllocator();
|
|
|
| - LocalSurfaceId GenerateId();
|
| + const LocalSurfaceId& GenerateId();
|
| +
|
| + const LocalSurfaceId& current_local_surface_id() const {
|
| + return current_local_surface_id_;
|
| + }
|
|
|
| private:
|
| uint32_t next_id_;
|
| + LocalSurfaceId current_local_surface_id_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(SurfaceIdAllocator);
|
| };
|
|
|