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

Unified Diff: components/mus/gles2/command_buffer_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/gles2/command_buffer_impl.cc
diff --git a/components/mus/gles2/command_buffer_impl.cc b/components/mus/gles2/command_buffer_impl.cc
index 86fb239829c8efc9c63309be4f1dc121b0ac4b6d..98bfce311b1be813bf1a7fb97c2bcfb252d3b808 100644
--- a/components/mus/gles2/command_buffer_impl.cc
+++ b/components/mus/gles2/command_buffer_impl.cc
@@ -115,14 +115,14 @@ void CommandBufferImpl::DestroyTransferBuffer(int32_t id) {
void CommandBufferImpl::CreateImage(int32_t id,
mojo::ScopedHandle memory_handle,
int32_t type,
- mojo::SizePtr size,
+ const gfx::Size& size,
int32_t format,
int32_t internal_format) {
gpu_state_->command_buffer_task_runner()->PostTask(
driver_.get(),
base::Bind(&CommandBufferImpl::CreateImageOnGpuThread,
base::Unretained(this), id, base::Passed(&memory_handle), type,
- base::Passed(&size), format, internal_format));
+ size, format, internal_format));
}
void CommandBufferImpl::DestroyImage(int32_t id) {
@@ -250,7 +250,7 @@ bool CommandBufferImpl::DestroyTransferBufferOnGpuThread(int32_t id) {
bool CommandBufferImpl::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