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

Unified Diff: gpu/command_buffer/service/gpu_scheduler.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.h ('k') | gpu/command_buffer/service/gpu_scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_scheduler.cc
diff --git a/gpu/command_buffer/service/gpu_scheduler.cc b/gpu/command_buffer/service/gpu_scheduler.cc
index aa311b6b8231507a51d9672a4c17fe9a6641123e..836109e0ed22168e4c2c4ebb0807b24b6a2831c9 100644
--- a/gpu/command_buffer/service/gpu_scheduler.cc
+++ b/gpu/command_buffer/service/gpu_scheduler.cc
@@ -4,6 +4,8 @@
#include "gpu/command_buffer/service/gpu_scheduler.h"
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
@@ -67,7 +69,7 @@ void GpuScheduler::PutChanged() {
// TODO(piman): various classes duplicate various pieces of state, leading
// to needlessly complex update logic. It should be possible to simply
// share the state across all of them.
- command_buffer_->SetGetOffset(static_cast<int32>(parser_->get()));
+ command_buffer_->SetGetOffset(static_cast<int32_t>(parser_->get()));
if (error::IsError(error)) {
command_buffer_->SetContextLostReason(decoder_->GetContextLostReason());
@@ -117,15 +119,15 @@ void GpuScheduler::SetSchedulingChangedCallback(
scheduling_changed_callback_ = callback;
}
-scoped_refptr<Buffer> GpuScheduler::GetSharedMemoryBuffer(int32 shm_id) {
+scoped_refptr<Buffer> GpuScheduler::GetSharedMemoryBuffer(int32_t shm_id) {
return command_buffer_->GetTransferBuffer(shm_id);
}
-void GpuScheduler::set_token(int32 token) {
+void GpuScheduler::set_token(int32_t token) {
command_buffer_->SetToken(token);
}
-bool GpuScheduler::SetGetBuffer(int32 transfer_buffer_id) {
+bool GpuScheduler::SetGetBuffer(int32_t transfer_buffer_id) {
scoped_refptr<Buffer> ring_buffer =
command_buffer_->GetTransferBuffer(transfer_buffer_id);
if (!ring_buffer.get()) {
@@ -143,15 +145,15 @@ bool GpuScheduler::SetGetBuffer(int32 transfer_buffer_id) {
return true;
}
-bool GpuScheduler::SetGetOffset(int32 offset) {
+bool GpuScheduler::SetGetOffset(int32_t offset) {
if (parser_->set_get(offset)) {
- command_buffer_->SetGetOffset(static_cast<int32>(parser_->get()));
+ command_buffer_->SetGetOffset(static_cast<int32_t>(parser_->get()));
return true;
}
return false;
}
-int32 GpuScheduler::GetGetOffset() {
+int32_t GpuScheduler::GetGetOffset() {
return parser_->get();
}
« no previous file with comments | « gpu/command_buffer/service/gpu_scheduler.h ('k') | gpu/command_buffer/service/gpu_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698