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

Unified Diff: components/mus/gles2/command_buffer_local.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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 | « components/mus/gles2/command_buffer_local.h ('k') | components/mus/gles2/command_buffer_local_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/command_buffer_local.cc
diff --git a/components/mus/gles2/command_buffer_local.cc b/components/mus/gles2/command_buffer_local.cc
index 99b801846aeb6c13bcb94da7088b0d4167ab9c6a..df5489ca06f1d00eecf9297af4d3146be09eb41a 100644
--- a/components/mus/gles2/command_buffer_local.cc
+++ b/components/mus/gles2/command_buffer_local.cc
@@ -113,7 +113,7 @@ bool CommandBufferLocal::Initialize() {
gpu::gles2::DisallowedFeatures disallowed_features;
// TODO(piman): attributes.
- std::vector<int32> attrib_vector;
+ std::vector<int32_t> attrib_vector;
if (!decoder_->Initialize(surface_, context_, false /* offscreen */,
gfx::Size(1, 1), disallowed_features,
attrib_vector))
@@ -158,8 +158,8 @@ int32_t CommandBufferLocal::CreateImage(ClientBuffer buffer,
return -1;
}
- static int32 next_id = 1;
- int32 new_id = next_id++;
+ static int32_t next_id = 1;
+ int32_t new_id = next_id++;
gpu::gles2::ImageManager* image_manager = decoder_->GetImageManager();
DCHECK(image_manager);
@@ -167,7 +167,7 @@ int32_t CommandBufferLocal::CreateImage(ClientBuffer buffer,
return new_id;
}
-void CommandBufferLocal::DestroyImage(int32 id) {
+void CommandBufferLocal::DestroyImage(int32_t id) {
gpu::gles2::ImageManager* image_manager = decoder_->GetImageManager();
DCHECK(image_manager);
image_manager->RemoveImage(id);
« no previous file with comments | « components/mus/gles2/command_buffer_local.h ('k') | components/mus/gles2/command_buffer_local_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698