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

Unified Diff: components/mus/gles2/command_buffer_local.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/gles2/command_buffer_local.cc
diff --git a/components/mus/gles2/command_buffer_local.cc b/components/mus/gles2/command_buffer_local.cc
index b00f5ebb966ac254af1cedc9409bf1cb5d15e6fc..4e12586219d00edb34f7748220919091eb1412bf 100644
--- a/components/mus/gles2/command_buffer_local.cc
+++ b/components/mus/gles2/command_buffer_local.cc
@@ -233,9 +233,7 @@ int32_t CommandBufferLocal::CreateImage(ClientBuffer buffer,
unsigned internal_format) {
DCHECK(CalledOnValidThread());
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);
@@ -511,7 +509,7 @@ bool CommandBufferLocal::CreateImageOnGpuThread(
int32_t id,
mojo::ScopedHandle memory_handle,
int32_t type,
- mojo::SizePtr size,
+ const gfx::Size& size,
int32_t format,
int32_t internal_format) {
DCHECK(driver_->IsScheduled());

Powered by Google App Engine
This is Rietveld 408576698