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

Unified Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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
« no previous file with comments | « media/video/gpu_memory_buffer_video_frame_pool.cc ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gles2/command_buffer_client_impl.cc
diff --git a/mojo/gles2/command_buffer_client_impl.cc b/mojo/gles2/command_buffer_client_impl.cc
index 314efb3bdd740773a1d15a42d53eb47ce534abaa..4c828e21dfcdd9bd6f0916e61e005388ee1db465 100644
--- a/mojo/gles2/command_buffer_client_impl.cc
+++ b/mojo/gles2/command_buffer_client_impl.cc
@@ -284,12 +284,9 @@ int32_t CommandBufferClientImpl::CreateImage(ClientBuffer buffer,
}
mojo::ScopedHandle scoped_handle;
scoped_handle.reset(mojo::Handle(mojo_handle));
- command_buffer_->CreateImage(new_id,
- scoped_handle.Pass(),
- handle.type,
- size.Pass(),
- gpu_memory_buffer->GetFormat(),
- internalformat);
+ command_buffer_->CreateImage(
+ new_id, scoped_handle.Pass(), handle.type, size.Pass(),
+ static_cast<int32_t>(gpu_memory_buffer->GetFormat()), internalformat);
if (requires_sync_point) {
NOTIMPLEMENTED();
// TODO(jam): need to support this if we support types other than
« no previous file with comments | « media/video/gpu_memory_buffer_video_frame_pool.cc ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698