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 d50796d4c95f1e5b99f89877ef802644d8afcf8b..5ef01e89479a5f00efd81d029f7359f1695be5b8 100644 |
--- a/components/mus/public/cpp/lib/command_buffer_client_impl.cc |
+++ b/components/mus/public/cpp/lib/command_buffer_client_impl.cc |
@@ -212,9 +212,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)); |
mus::MojoGpuMemoryBufferImpl* gpu_memory_buffer = |
mus::MojoGpuMemoryBufferImpl::FromClientBuffer(buffer); |