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

Unified Diff: gpu/command_buffer/common/gpu_memory_allocation.h

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/gles2_cmd_utils_unittest.cc ('k') | gpu/command_buffer/common/id_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/gpu_memory_allocation.h
diff --git a/gpu/command_buffer/common/gpu_memory_allocation.h b/gpu/command_buffer/common/gpu_memory_allocation.h
index facbd7ff8850acebc910f9c30303e7618b19360b..675b955d539889595d7ea9e60849584047c239ac 100644
--- a/gpu/command_buffer/common/gpu_memory_allocation.h
+++ b/gpu/command_buffer/common/gpu_memory_allocation.h
@@ -5,7 +5,7 @@
#ifndef GPU_COMMAND_BUFFER_COMMON_GPU_MEMORY_ALLOCATION_H_
#define GPU_COMMAND_BUFFER_COMMON_GPU_MEMORY_ALLOCATION_H_
-#include "base/basictypes.h"
+#include <stdint.h>
namespace gpu {
@@ -29,7 +29,7 @@ struct MemoryAllocation {
};
// Limits when this renderer is visible.
- uint64 bytes_limit_when_visible;
+ uint64_t bytes_limit_when_visible;
PriorityCutoff priority_cutoff_when_visible;
MemoryAllocation()
@@ -37,10 +37,9 @@ struct MemoryAllocation {
priority_cutoff_when_visible(CUTOFF_ALLOW_NOTHING) {
}
- MemoryAllocation(uint64 bytes_limit_when_visible)
+ MemoryAllocation(uint64_t bytes_limit_when_visible)
: bytes_limit_when_visible(bytes_limit_when_visible),
- priority_cutoff_when_visible(CUTOFF_ALLOW_EVERYTHING) {
- }
+ priority_cutoff_when_visible(CUTOFF_ALLOW_EVERYTHING) {}
bool Equals(const MemoryAllocation& other) const {
return bytes_limit_when_visible ==
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils_unittest.cc ('k') | gpu/command_buffer/common/id_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698