Index: media/capture/video/video_capture_buffer_pool.h |
diff --git a/media/capture/video/video_capture_buffer_pool.h b/media/capture/video/video_capture_buffer_pool.h |
index 1b7263e9b63ce0b4dd5dd0000acc929575cd1fca..e3c7f97c2c40529f7305c566ced93a31763dd4ee 100644 |
--- a/media/capture/video/video_capture_buffer_pool.h |
+++ b/media/capture/video/video_capture_buffer_pool.h |
@@ -8,6 +8,7 @@ |
#include "base/memory/ref_counted.h" |
#include "media/base/video_capture_types.h" |
#include "media/capture/capture_export.h" |
+#include "mojo/public/cpp/system/buffer.h" |
#include "ui/gfx/geometry/size.h" |
#include "ui/gfx/gpu_memory_buffer.h" |
@@ -40,11 +41,8 @@ class CAPTURE_EXPORT VideoCaptureBufferPool |
public: |
static constexpr int kInvalidId = -1; |
- // One-time (per client/per-buffer) initialization to share a particular |
- // buffer to a process. The shared handle is returned as |new_handle|. |
- virtual bool ShareToProcess(int buffer_id, |
- base::ProcessHandle process_handle, |
- base::SharedMemoryHandle* new_handle) = 0; |
+ // One-time (per client/per-buffer) call to allow sharing |buffer_id|. |
+ virtual mojo::ScopedSharedBufferHandle GetHandleForTransit(int buffer_id) = 0; |
// Try and obtain a BufferHandle for |buffer_id|. |
virtual std::unique_ptr<VideoCaptureBufferHandle> GetBufferHandle( |