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

Unified Diff: components/view_manager/gles2/command_buffer_driver.cc

Issue 1280513002: Add GenericSharedMemoryId and use w/ GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trackpools
Patch Set: remove "tracing" from name 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 | « cc/test/test_gpu_memory_buffer_manager.cc ('k') | components/view_manager/gles2/mojo_gpu_memory_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/view_manager/gles2/command_buffer_driver.cc
diff --git a/components/view_manager/gles2/command_buffer_driver.cc b/components/view_manager/gles2/command_buffer_driver.cc
index cbb63dc97225136f57c9ec4861be8ebfe53c5578..5a4ac83fb4943738eae6efe524845352e6ee23a7 100644
--- a/components/view_manager/gles2/command_buffer_driver.cc
+++ b/components/view_manager/gles2/command_buffer_driver.cc
@@ -256,7 +256,7 @@ void CommandBufferDriver::CreateImage(int32_t id,
gfx::GpuMemoryBufferHandle gfx_handle;
// TODO(jam): create mojo enum for this and converter
gfx_handle.type = static_cast<gfx::GpuMemoryBufferType>(type);
- gfx_handle.id = id;
+ gfx_handle.id = gfx::GpuMemoryBufferId(id);
MojoPlatformHandle platform_handle;
MojoResult extract_result = MojoExtractPlatformHandle(
« no previous file with comments | « cc/test/test_gpu_memory_buffer_manager.cc ('k') | components/view_manager/gles2/mojo_gpu_memory_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698