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

Unified Diff: gpu/command_buffer/common/id_allocator.cc

Issue 1542513002: Switch to standard integer types in gpu/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/common/gpu_memory_allocation.h ('k') | gpu/command_buffer/common/id_allocator_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/id_allocator.cc
diff --git a/gpu/command_buffer/common/id_allocator.cc b/gpu/command_buffer/common/id_allocator.cc
index 80e109aa744f122811ffa9f15a1ad438b1726c6d..13a4abaac505dcb8dbb0ba75a0c2dd02100b73fc 100644
--- a/gpu/command_buffer/common/id_allocator.cc
+++ b/gpu/command_buffer/common/id_allocator.cc
@@ -6,6 +6,8 @@
#include "gpu/command_buffer/common/id_allocator.h"
+#include <stdint.h>
+
#include <limits>
#include "base/logging.h"
@@ -142,7 +144,7 @@ void IdAllocator::FreeID(ResourceId id) {
FreeIDRange(id, 1u);
}
-void IdAllocator::FreeIDRange(ResourceId first_id, uint32 range) {
+void IdAllocator::FreeIDRange(ResourceId first_id, uint32_t range) {
static_assert(kInvalidResource == 0u, "kInvalidResource must be 0");
if (range == 0u || (first_id == 0u && range == 1u)) {
« no previous file with comments | « gpu/command_buffer/common/gpu_memory_allocation.h ('k') | gpu/command_buffer/common/id_allocator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698