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

Side by Side Diff: cc/surfaces/local_surface_id_allocator.cc

Issue 2708153005: Rename SurfaceIdAllocator to LocalSurfaceIdAllocator (Closed)
Patch Set: Delete useless include Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « cc/surfaces/local_surface_id_allocator.h ('k') | cc/surfaces/surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/surfaces/surface_id_allocator.h" 5 #include "cc/surfaces/local_surface_id_allocator.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/rand_util.h" 9 #include "base/rand_util.h"
10 #include "base/unguessable_token.h" 10 #include "base/unguessable_token.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 SurfaceIdAllocator::SurfaceIdAllocator() : next_id_(1u) {} 14 LocalSurfaceIdAllocator::LocalSurfaceIdAllocator() : next_id_(1u) {}
15 15
16 SurfaceIdAllocator::~SurfaceIdAllocator() { 16 LocalSurfaceIdAllocator::~LocalSurfaceIdAllocator() {}
17 }
18 17
19 LocalSurfaceId SurfaceIdAllocator::GenerateId() { 18 LocalSurfaceId LocalSurfaceIdAllocator::GenerateId() {
20 LocalSurfaceId id(next_id_, base::UnguessableToken::Create()); 19 LocalSurfaceId id(next_id_, base::UnguessableToken::Create());
21 next_id_++; 20 next_id_++;
22 return id; 21 return id;
23 } 22 }
24 23
25 } // namespace cc 24 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/local_surface_id_allocator.h ('k') | cc/surfaces/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698