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

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

Issue 2410383002: VideoCapture: more migration IPC-->mojo, part 6 (Closed)
Patch Set: Created 4 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 | « no previous file | content/browser/renderer_host/media/video_capture_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/shared_memory_buffer_tracker.cc
diff --git a/content/browser/renderer_host/media/shared_memory_buffer_tracker.cc b/content/browser/renderer_host/media/shared_memory_buffer_tracker.cc
index bf8e3cd47869215972d1277ae29fbdbd23375cb3..797fb224c783a5bde776e80d4560de1bc18687f5 100644
--- a/content/browser/renderer_host/media/shared_memory_buffer_tracker.cc
+++ b/content/browser/renderer_host/media/shared_memory_buffer_tracker.cc
@@ -38,7 +38,8 @@ SharedMemoryBufferTracker::GetBufferHandle() {
bool SharedMemoryBufferTracker::ShareToProcess(
base::ProcessHandle process_handle,
base::SharedMemoryHandle* new_handle) {
- return shared_memory_.ShareToProcess(process_handle, new_handle);
+ *new_handle = base::SharedMemory::DuplicateHandle(shared_memory_.handle());
Ken Rockot(use gerrit already) 2016/10/19 05:24:18 So it looks like ShareToProcess is ultimately only
mcasas 2016/10/19 17:53:29 All right! I was a bit shy to dig deeper in this C
+ return true;
}
} // namespace content
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698