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

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

Issue 2573223002: [Mojo Video Capture] Simplify media::VideoCaptureDevice::Client:Buffer to a struct (Closed)
Patch Set: miu's comments Created 3 years, 12 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 2d049570f95fa2d2868de33b86b4d5661d3fef4d..9829a0aa13e4568dbdc048793a519efb69464138 100644
--- a/media/capture/video/video_capture_buffer_pool.h
+++ b/media/capture/video/video_capture_buffer_pool.h
@@ -42,10 +42,11 @@ class CAPTURE_EXPORT VideoCaptureBufferPool
static constexpr int kInvalidId = -1;
// One-time (per client/per-buffer) call to allow sharing |buffer_id|.
- virtual mojo::ScopedSharedBufferHandle GetHandleForTransit(int buffer_id) = 0;
+ virtual mojo::ScopedSharedBufferHandle GetHandleForInterProcessTransit(
+ int buffer_id) = 0;
- // Try and obtain a BufferHandle for |buffer_id|.
- virtual std::unique_ptr<VideoCaptureBufferHandle> GetBufferHandle(
+ // Try and obtain a read/write access to the buffer.
+ virtual std::unique_ptr<VideoCaptureBufferHandle> GetHandleForInProcessAccess(
int buffer_id) = 0;
// Reserve or allocate a buffer to support a packed frame of |dimensions| of

Powered by Google App Engine
This is Rietveld 408576698