Chromium Code Reviews| Index: components/mus/public/cpp/lib/command_buffer_client_impl.cc |
| diff --git a/components/mus/public/cpp/lib/command_buffer_client_impl.cc b/components/mus/public/cpp/lib/command_buffer_client_impl.cc |
| index ebbee055ca086f572a6cf2934775d996fc7b292b..5fd454a1a1703f3a695394ae1c3849983c7d3c7d 100644 |
| --- a/components/mus/public/cpp/lib/command_buffer_client_impl.cc |
| +++ b/components/mus/public/cpp/lib/command_buffer_client_impl.cc |
| @@ -213,9 +213,7 @@ int32_t CommandBufferClientImpl::CreateImage(ClientBuffer buffer, |
| unsigned internalformat) { |
| int32_t new_id = ++next_image_id_; |
| - mojo::SizePtr size = mojo::Size::New(); |
| - size->width = static_cast<int32_t>(width); |
| - size->height = static_cast<int32_t>(height); |
| + gfx::Size size(static_cast<int32_t>(width), static_cast<int32_t>(height)); |
|
dcheng
2016/05/26 22:20:40
Not related to your change but I wonder why this f
|
| mus::MojoGpuMemoryBufferImpl* gpu_memory_buffer = |
| mus::MojoGpuMemoryBufferImpl::FromClientBuffer(buffer); |