Index: media/capture/video/video_capture_buffer_pool_impl.cc |
diff --git a/media/capture/video/video_capture_buffer_pool_impl.cc b/media/capture/video/video_capture_buffer_pool_impl.cc |
index 6c8dcff3accb209c11fff0b53765dae4b387e268..d64709e5983eadc2288684b8a933234a7add7fe6 100644 |
--- a/media/capture/video/video_capture_buffer_pool_impl.cc |
+++ b/media/capture/video/video_capture_buffer_pool_impl.cc |
@@ -30,21 +30,16 @@ VideoCaptureBufferPoolImpl::~VideoCaptureBufferPoolImpl() { |
base::STLDeleteValues(&trackers_); |
} |
-bool VideoCaptureBufferPoolImpl::ShareToProcess( |
- int buffer_id, |
- base::ProcessHandle process_handle, |
- base::SharedMemoryHandle* new_handle) { |
+mojo::ScopedSharedBufferHandle VideoCaptureBufferPoolImpl::GetHandleForTransit( |
+ int buffer_id) { |
base::AutoLock lock(lock_); |
VideoCaptureBufferTracker* tracker = GetTracker(buffer_id); |
if (!tracker) { |
NOTREACHED() << "Invalid buffer_id."; |
- return false; |
+ return mojo::ScopedSharedBufferHandle(); |
} |
- if (tracker->ShareToProcess(process_handle, new_handle)) |
- return true; |
- DPLOG(ERROR) << "Error mapping memory"; |
- return false; |
+ return tracker->GetHandleForTransit(); |
} |
std::unique_ptr<VideoCaptureBufferHandle> |