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

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 4 years 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..e2230cce34672181cd4ebb9e6376013483cf236e 100644
--- a/media/capture/video/video_capture_buffer_pool.h
+++ b/media/capture/video/video_capture_buffer_pool.h
@@ -44,8 +44,8 @@ class CAPTURE_EXPORT VideoCaptureBufferPool
// 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(
+ // Try and obtain a read/write access to the buffer.
+ virtual std::unique_ptr<VideoCaptureBufferHandle> GetReadWriteAccess(
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