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) |