Index: content/renderer/media/video_capture_message_filter.h |
diff --git a/content/renderer/media/video_capture_message_filter.h b/content/renderer/media/video_capture_message_filter.h |
index 2c71efa8732470846232bc47111c213edab7f187..4adea7b9b7aa0cb206775a77a3008718f7114585 100644 |
--- a/content/renderer/media/video_capture_message_filter.h |
+++ b/content/renderer/media/video_capture_message_filter.h |
@@ -18,6 +18,12 @@ |
#include "ipc/ipc_channel_proxy.h" |
#include "media/video/capture/video_capture.h" |
+namespace gpu { |
+ |
+struct MailboxHolder; |
+ |
+} // namespace gpu |
+ |
namespace content { |
class CONTENT_EXPORT VideoCaptureMessageFilter |
@@ -34,8 +40,15 @@ class CONTENT_EXPORT VideoCaptureMessageFilter |
// Called when a video frame buffer is received from the browser process. |
virtual void OnBufferReceived(int buffer_id, |
- base::TimeTicks timestamp, |
- const media::VideoCaptureFormat& format) = 0; |
+ const media::VideoCaptureFormat& format, |
+ base::TimeTicks timestamp) = 0; |
+ |
+ // Called when a video mailbox buffer is received from the browser process. |
+ virtual void OnMailboxBufferReceived( |
+ int buffer_id, |
+ const gpu::MailboxHolder& mailbox_holder, |
+ const media::VideoCaptureFormat& format, |
+ base::TimeTicks timestamp) = 0; |
// Called when state of a video capture device has changed in the browser |
// process. |
@@ -85,8 +98,15 @@ class CONTENT_EXPORT VideoCaptureMessageFilter |
// Receive a filled buffer from browser process. |
void OnBufferReceived(int device_id, |
int buffer_id, |
- base::TimeTicks timestamp, |
- const media::VideoCaptureFormat& format); |
+ const media::VideoCaptureFormat& format, |
+ base::TimeTicks timestamp); |
+ |
+ // Receive a filled texture mailbox buffer from browser process. |
+ void OnMailboxBufferReceived(int device_id, |
+ int buffer_id, |
+ const gpu::MailboxHolder& mailbox_holder, |
+ const media::VideoCaptureFormat& format, |
+ base::TimeTicks timestamp); |
// State of browser process' video capture device has changed. |
void OnDeviceStateChanged(int device_id, VideoCaptureState state); |