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

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

Powered by Google App Engine
This is Rietveld 408576698