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

Unified Diff: content/renderer/media/video_capture_message_filter.h

Issue 83793004: Implement IPCs and VideoCapture::Client interfaces for texture capture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: e296ac98 Win32 bits. Created 6 years, 10 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/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 215214dca40a0caf0d7e4f268b77587a08a59e96..c99408f62411d200a7d08c0136bc1479a633ae60 100644
--- a/content/renderer/media/video_capture_message_filter.h
+++ b/content/renderer/media/video_capture_message_filter.h
@@ -18,6 +18,10 @@
#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 +38,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.
@@ -93,8 +104,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);
« no previous file with comments | « content/renderer/media/video_capture_impl_unittest.cc ('k') | content/renderer/media/video_capture_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698