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

Unified Diff: gpu/command_buffer/common/command_buffer_shared_test.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/command_buffer_mock.h ('k') | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/command_buffer_shared_test.cc
diff --git a/gpu/command_buffer/common/command_buffer_shared_test.cc b/gpu/command_buffer/common/command_buffer_shared_test.cc
index 83aed36882bddc3b7de12b59c019c8395757ef6c..dc4bbed218f5ba5fd6056b61223ed507378860cb 100644
--- a/gpu/command_buffer/common/command_buffer_shared_test.cc
+++ b/gpu/command_buffer/common/command_buffer_shared_test.cc
@@ -6,6 +6,8 @@
#include "gpu/command_buffer/common/command_buffer_shared.h"
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/memory/scoped_ptr.h"
@@ -39,8 +41,7 @@ TEST_F(CommandBufferSharedTest, TestBasic) {
static const int kSize = 100000;
-void WriteToState(int32 *buffer,
- CommandBufferSharedState* shared_state) {
+void WriteToState(int32_t* buffer, CommandBufferSharedState* shared_state) {
CommandBuffer::State state;
for (int i = 0; i < kSize; i++) {
state.token = i - 1;
@@ -56,11 +57,11 @@ void WriteToState(int32 *buffer,
}
TEST_F(CommandBufferSharedTest, TestConsistency) {
- scoped_ptr<int32[]> buffer;
- buffer.reset(new int32[kSize]);
+ scoped_ptr<int32_t[]> buffer;
+ buffer.reset(new int32_t[kSize]);
base::Thread consumer("Reader Thread");
- memset(buffer.get(), 0, kSize * sizeof(int32));
+ memset(buffer.get(), 0, kSize * sizeof(int32_t));
consumer.Start();
consumer.task_runner()->PostTask(
« no previous file with comments | « gpu/command_buffer/common/command_buffer_mock.h ('k') | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698