| Index: cc/surfaces/surface_id_allocator.cc
|
| diff --git a/cc/surfaces/surface_id_allocator.cc b/cc/surfaces/surface_id_allocator.cc
|
| index 24bcfbd46f95e9e95a7af99b6c8769ab8dbb38cd..e50eafb3b6590aa72eb740216d8a95b08d2e90fa 100644
|
| --- a/cc/surfaces/surface_id_allocator.cc
|
| +++ b/cc/surfaces/surface_id_allocator.cc
|
| @@ -16,10 +16,11 @@ SurfaceIdAllocator::SurfaceIdAllocator() : next_id_(1u) {}
|
| SurfaceIdAllocator::~SurfaceIdAllocator() {
|
| }
|
|
|
| -LocalFrameId SurfaceIdAllocator::GenerateId() {
|
| - LocalFrameId id(next_id_, base::UnguessableToken::Create());
|
| +const LocalFrameId& SurfaceIdAllocator::GenerateId() {
|
| + current_local_frame_id_ =
|
| + LocalFrameId(next_id_, base::UnguessableToken::Create());
|
| next_id_++;
|
| - return id;
|
| + return current_local_frame_id_;
|
| }
|
|
|
| } // namespace cc
|
|
|