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

Unified Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 1187163002: Fix size_t to int/int32_t conversion warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gles2/command_buffer_client_impl.cc
diff --git a/mojo/gles2/command_buffer_client_impl.cc b/mojo/gles2/command_buffer_client_impl.cc
index 31baac45d61ef039b31e568ce771b35caf8d9576..446cd9f740334924fac986338723b67b4a6f01ef 100644
--- a/mojo/gles2/command_buffer_client_impl.cc
+++ b/mojo/gles2/command_buffer_client_impl.cc
@@ -252,8 +252,8 @@ int32_t CommandBufferClientImpl::CreateImage(ClientBuffer buffer,
int32 new_id = ++next_image_id_;
mojo::SizePtr size = mojo::Size::New();
- size->width = width;
- size->height = height;
+ size->width = static_cast<int32_t>(width);
+ size->height = static_cast<int32_t>(height);
MojoGpuMemoryBufferImpl* gpu_memory_buffer =
MojoGpuMemoryBufferImpl::FromClientBuffer(buffer);
@@ -310,7 +310,7 @@ int32_t CommandBufferClientImpl::CreateGpuMemoryBufferImage(
unsigned internalformat,
unsigned usage) {
scoped_ptr<gfx::GpuMemoryBuffer> buffer(MojoGpuMemoryBufferImpl::Create(
- gfx::Size(width, height),
+ gfx::Size(static_cast<int>(width), static_cast<int>(height)),
gpu::ImageFactory::ImageFormatToGpuMemoryBufferFormat(internalformat),
gpu::ImageFactory::ImageUsageToGpuMemoryBufferUsage(usage)));
if (!buffer)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698