Index: gpu/command_buffer/client/ring_buffer.h |
diff --git a/gpu/command_buffer/client/ring_buffer.h b/gpu/command_buffer/client/ring_buffer.h |
index ff20a4c05fe461a9a537acc7d8f7874c7dfff143..083cb018ff59e5784cb8a8ba045aa0ee4e91eab4 100644 |
--- a/gpu/command_buffer/client/ring_buffer.h |
+++ b/gpu/command_buffer/client/ring_buffer.h |
@@ -7,6 +7,8 @@ |
#ifndef GPU_COMMAND_BUFFER_CLIENT_RING_BUFFER_H_ |
#define GPU_COMMAND_BUFFER_CLIENT_RING_BUFFER_H_ |
+#include <stdint.h> |
+ |
#include <deque> |
#include "base/logging.h" |
@@ -75,12 +77,12 @@ class GPU_EXPORT RingBuffer { |
// Gets a pointer to a memory block given the base memory and the offset. |
void* GetPointer(RingBuffer::Offset offset) const { |
- return static_cast<int8*>(base_) + offset; |
+ return static_cast<int8_t*>(base_) + offset; |
} |
// Gets the offset to a memory block given the base memory and the address. |
RingBuffer::Offset GetOffset(void* pointer) const { |
- return static_cast<int8*>(pointer) - static_cast<int8*>(base_); |
+ return static_cast<int8_t*>(pointer) - static_cast<int8_t*>(base_); |
} |
// Rounds the given size to the alignment in use. |