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

Unified Diff: components/mus/public/cpp/lib/command_buffer_client_impl.cc

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
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);

Powered by Google App Engine
This is Rietveld 408576698