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

Unified Diff: gpu/command_buffer/client/fenced_allocator.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/client/context_support.h ('k') | gpu/command_buffer/client/fenced_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/fenced_allocator.h
diff --git a/gpu/command_buffer/client/fenced_allocator.h b/gpu/command_buffer/client/fenced_allocator.h
index 45b4dfdbc1219a9f9bfe4386292798e4cfcf1cd1..0e8c64c9f838cd4de50308a488e304f279671fa8 100644
--- a/gpu/command_buffer/client/fenced_allocator.h
+++ b/gpu/command_buffer/client/fenced_allocator.h
@@ -7,6 +7,7 @@
#ifndef GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_
#define GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_
+#include <stddef.h>
#include <stdint.h>
#include <vector>
@@ -68,7 +69,7 @@ class GPU_EXPORT FencedAllocator {
// Parameters:
// offset: the offset of the memory block to free.
// token: the token value to wait for before re-using the memory.
- void FreePendingToken(Offset offset, int32 token);
+ void FreePendingToken(Offset offset, int32_t token);
// Frees any blocks pending a token for which the token has been read.
void FreeUnused();
@@ -204,7 +205,7 @@ class FencedAllocatorWrapper {
// Parameters:
// pointer: the pointer to the memory block to free.
// token: the token value to wait for before re-using the memory.
- void FreePendingToken(void *pointer, int32 token) {
+ void FreePendingToken(void* pointer, int32_t token) {
DCHECK(pointer);
allocator_.FreePendingToken(GetOffset(pointer), token);
}
« no previous file with comments | « gpu/command_buffer/client/context_support.h ('k') | gpu/command_buffer/client/fenced_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698