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

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

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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/surface_id_allocator.h ('k') | cc/surfaces/surface_manager.h » ('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 2014 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/surface_id_allocator.h"
6 6
7 #include <stdint.h>
8
7 #include "cc/surfaces/surface_manager.h" 9 #include "cc/surfaces/surface_manager.h"
8 10
9 namespace cc { 11 namespace cc {
10 12
11 SurfaceIdAllocator::SurfaceIdAllocator(uint32_t id_namespace) 13 SurfaceIdAllocator::SurfaceIdAllocator(uint32_t id_namespace)
12 : id_namespace_(id_namespace), next_id_(1u), manager_(nullptr) { 14 : id_namespace_(id_namespace), next_id_(1u), manager_(nullptr) {
13 } 15 }
14 16
15 void SurfaceIdAllocator::RegisterSurfaceIdNamespace(SurfaceManager* manager) { 17 void SurfaceIdAllocator::RegisterSurfaceIdNamespace(SurfaceManager* manager) {
16 DCHECK(!manager_); 18 DCHECK(!manager_);
(...skipping 11 matching lines...) Expand all
28 next_id_++; 30 next_id_++;
29 return id; 31 return id;
30 } 32 }
31 33
32 // static 34 // static
33 uint32_t SurfaceIdAllocator::NamespaceForId(SurfaceId id) { 35 uint32_t SurfaceIdAllocator::NamespaceForId(SurfaceId id) {
34 return id.id >> 32; 36 return id.id >> 32;
35 } 37 }
36 38
37 } // namespace cc 39 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/surface_id_allocator.h ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698