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

Unified Diff: content/browser/renderer_host/media/video_capture_buffer_pool.cc

Issue 1417363006: ui: Add support for creating GLImage instances from shared memory pools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usage-rename
Patch Set: static_cast<off_t> to make windows build happy Created 5 years, 2 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 | « components/mus/gles2/mojo_gpu_memory_buffer.cc ('k') | content/common/child_process_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/video_capture_buffer_pool.cc
diff --git a/content/browser/renderer_host/media/video_capture_buffer_pool.cc b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
index c4843e37b60708fe3adefa5ed763635327ab612a..4979f7cc5b3c34b77f01d919cd670635b6c83f10 100644
--- a/content/browser/renderer_host/media/video_capture_buffer_pool.cc
+++ b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
@@ -248,6 +248,7 @@ bool VideoCaptureBufferPool::GpuMemoryBufferTracker::ShareToProcess2(
shared_memory.ShareToProcess(process_handle, &new_handle->handle);
DCHECK(base::SharedMemory::IsHandleValid(new_handle->handle));
new_handle->type = gfx::SHARED_MEMORY_BUFFER;
+ new_handle->offset = current_gmb_handle.offset;
return true;
}
case gfx::IO_SURFACE_BUFFER:
« no previous file with comments | « components/mus/gles2/mojo_gpu_memory_buffer.cc ('k') | content/common/child_process_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698