Fix size_t to int/int32_t conversion warnings.
BUG=None
Review URL: https://codereview.chromium.org/1187163002
Cr-Commit-Position: refs/heads/master@{#334638}
CrOS-Libchrome-Original-Commit: e5e9a869ac6cfedbcc20bd0feb1b4deef4acca48
diff --git a/mojo/gles2/command_buffer_client_impl.cc b/mojo/gles2/command_buffer_client_impl.cc
index 31baac4..446cd9f 100644
--- a/mojo/gles2/command_buffer_client_impl.cc
+++ b/mojo/gles2/command_buffer_client_impl.cc
@@ -252,8 +252,8 @@
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 @@
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)