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

Unified Diff: media/capture/video/video_capture_buffer_pool.h

Issue 2410383002: VideoCapture: more migration IPC-->mojo, part 6 (Closed)
Patch Set: Comment correction 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
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(

Powered by Google App Engine
This is Rietveld 408576698