diff options
Diffstat (limited to 'chromium/content/browser/renderer_host/media/video_capture_controller_event_handler.h')
-rw-r--r-- | chromium/content/browser/renderer_host/media/video_capture_controller_event_handler.h | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/chromium/content/browser/renderer_host/media/video_capture_controller_event_handler.h b/chromium/content/browser/renderer_host/media/video_capture_controller_event_handler.h index 6559a530b1d..3e709476a12 100644 --- a/chromium/content/browser/renderer_host/media/video_capture_controller_event_handler.h +++ b/chromium/content/browser/renderer_host/media/video_capture_controller_event_handler.h @@ -8,7 +8,14 @@ #include "base/memory/shared_memory.h" #include "base/time/time.h" #include "content/common/content_export.h" -#include "media/video/capture/video_capture_types.h" + +namespace gpu { +struct MailboxHolder; +} // namespace gpu + +namespace media { +class VideoCaptureFormat; +} // namespace media namespace content { @@ -41,11 +48,17 @@ class CONTENT_EXPORT VideoCaptureControllerEventHandler { int buffer_id) = 0; // A buffer has been filled with I420 video. - virtual void OnBufferReady( - const VideoCaptureControllerID& id, - int buffer_id, - base::Time timestamp, - const media::VideoCaptureFormat& format) = 0; + virtual void OnBufferReady(const VideoCaptureControllerID& id, + int buffer_id, + const media::VideoCaptureFormat& format, + base::TimeTicks timestamp) = 0; + + // A texture mailbox buffer has been filled with data. + virtual void OnMailboxBufferReady(const VideoCaptureControllerID& id, + int buffer_id, + const gpu::MailboxHolder& mailbox_holder, + const media::VideoCaptureFormat& format, + base::TimeTicks timestamp) = 0; // The capture session has ended and no more frames will be sent. virtual void OnEnded(const VideoCaptureControllerID& id) = 0; |