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

Unified Diff: gpu/command_buffer/service/gpu_scheduler_unittest.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/service/gpu_scheduler.cc ('k') | gpu/command_buffer/service/gpu_state_tracer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_scheduler_unittest.cc
diff --git a/gpu/command_buffer/service/gpu_scheduler_unittest.cc b/gpu/command_buffer/service/gpu_scheduler_unittest.cc
index 77d947319f6b4d94c4dd7898ece909f4e1afe110..a3ab1e0d7dd746e08c77874ebee08e3f25b76fd3 100644
--- a/gpu/command_buffer/service/gpu_scheduler_unittest.cc
+++ b/gpu/command_buffer/service/gpu_scheduler_unittest.cc
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+#include <stdint.h>
+
#include "gpu/command_buffer/common/command_buffer_mock.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h"
@@ -24,12 +27,12 @@ const size_t kRingBufferSize = 1024;
class GpuSchedulerTest : public testing::Test {
protected:
- static const int32 kTransferBufferId = 123;
+ static const int32_t kTransferBufferId = 123;
void SetUp() override {
scoped_ptr<base::SharedMemory> shared_memory(new ::base::SharedMemory);
shared_memory->CreateAndMapAnonymous(kRingBufferSize);
- buffer_ = static_cast<int32*>(shared_memory->memory());
+ buffer_ = static_cast<int32_t*>(shared_memory->memory());
shared_memory_buffer_ =
MakeBufferFromSharedMemory(std::move(shared_memory), kRingBufferSize);
memset(buffer_, 0, kRingBufferSize);
@@ -69,7 +72,7 @@ class GpuSchedulerTest : public testing::Test {
scoped_ptr<MockCommandBuffer> command_buffer_;
scoped_refptr<Buffer> shared_memory_buffer_;
- int32* buffer_;
+ int32_t* buffer_;
scoped_ptr<gles2::MockGLES2Decoder> decoder_;
scoped_ptr<GpuScheduler> scheduler_;
base::MessageLoop message_loop_;
« no previous file with comments | « gpu/command_buffer/service/gpu_scheduler.cc ('k') | gpu/command_buffer/service/gpu_state_tracer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698