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

Unified Diff: content/browser/renderer_host/media/video_capture_buffer_pool.h

Issue 1016773002: MJPEG acceleration for video capture using VAAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: content/browser/renderer_host/media/video_capture_buffer_pool.h
diff --git a/content/browser/renderer_host/media/video_capture_buffer_pool.h b/content/browser/renderer_host/media/video_capture_buffer_pool.h
index 25464997c6e4b523c5d5fce46110d153966edfd2..05b8865e8a63ae373b66aab3a185588a7aaac487 100644
--- a/content/browser/renderer_host/media/video_capture_buffer_pool.h
+++ b/content/browser/renderer_host/media/video_capture_buffer_pool.h
@@ -55,7 +55,10 @@ class CONTENT_EXPORT VideoCaptureBufferPool
// Query the memory parameters of |buffer_id|. Fills in parameters in the
// pointer arguments, and returns true iff the buffer exists.
- bool GetBufferInfo(int buffer_id, void** storage, size_t* size);
+ bool GetBufferInfo(int buffer_id,
+ void** storage,
+ size_t* size,
+ base::SharedMemoryHandle* handle);
// Reserve or allocate a buffer to support a packed frame of |dimensions| of
// pixel |format| and return its id. This will fail (returning kInvalidId) if
@@ -114,6 +117,7 @@ class CONTENT_EXPORT VideoCaptureBufferPool
virtual size_t requested_size() = 0;
// The actual size of the underlying backing resource.
virtual size_t mapped_size() = 0;
+ virtual base::SharedMemoryHandle handle() = 0;
virtual bool ShareToProcess(base::ProcessHandle process_handle,
base::SharedMemoryHandle* new_handle) = 0;

Powered by Google App Engine
This is Rietveld 408576698