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

Unified Diff: gpu/command_buffer/client/ring_buffer.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/client/ring_buffer.h ('k') | gpu/command_buffer/client/ring_buffer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/ring_buffer.cc
diff --git a/gpu/command_buffer/client/ring_buffer.cc b/gpu/command_buffer/client/ring_buffer.cc
index 002d529c6d7e9313ebbc43b98738fb15d2858db3..ebbb1182aed5f175f8391de22e79118cdf6f4b71 100644
--- a/gpu/command_buffer/client/ring_buffer.cc
+++ b/gpu/command_buffer/client/ring_buffer.cc
@@ -6,6 +6,8 @@
#include "gpu/command_buffer/client/ring_buffer.h"
+#include <stdint.h>
+
#include <algorithm>
#include "base/logging.h"
@@ -13,8 +15,10 @@
namespace gpu {
-RingBuffer::RingBuffer(unsigned int alignment, Offset base_offset,
- unsigned int size, CommandBufferHelper* helper,
+RingBuffer::RingBuffer(unsigned int alignment,
+ Offset base_offset,
+ unsigned int size,
+ CommandBufferHelper* helper,
void* base)
: helper_(helper),
base_offset_(base_offset),
@@ -22,8 +26,7 @@ RingBuffer::RingBuffer(unsigned int alignment, Offset base_offset,
free_offset_(0),
in_use_offset_(0),
alignment_(alignment),
- base_(static_cast<int8*>(base) - base_offset) {
-}
+ base_(static_cast<int8_t*>(base) - base_offset) {}
RingBuffer::~RingBuffer() {
// Free blocks pending tokens.
« no previous file with comments | « gpu/command_buffer/client/ring_buffer.h ('k') | gpu/command_buffer/client/ring_buffer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698