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

Unified Diff: content/common/media/video_capture_messages.h

Issue 83793004: Implement IPCs and VideoCapture::Client interfaces for texture capture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 5744a8bbb Nits. Created 6 years, 11 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/common/media/video_capture_messages.h
diff --git a/content/common/media/video_capture_messages.h b/content/common/media/video_capture_messages.h
index a1e913ff24058d3741e2fca9993570d7fd1d87ee..632a0111aebd91c325cf1991877245807cb7e3d5 100644
--- a/content/common/media/video_capture_messages.h
+++ b/content/common/media/video_capture_messages.h
@@ -6,6 +6,7 @@
#include "content/common/content_export.h"
#include "content/common/media/video_capture.h"
#include "content/public/common/common_param_traits.h"
+#include "gpu/command_buffer/common/mailbox_holder.h"
#include "ipc/ipc_message_macros.h"
#include "media/video/capture/video_capture_types.h"
@@ -46,8 +47,17 @@ IPC_MESSAGE_CONTROL2(VideoCaptureMsg_FreeBuffer,
IPC_MESSAGE_CONTROL4(VideoCaptureMsg_BufferReady,
int /* device id */,
int /* buffer_id */,
- base::TimeTicks /* timestamp */,
- media::VideoCaptureFormat /* resolution */)
+ media::VideoCaptureFormat /* format */,
+ base::TimeTicks /* timestamp */)
+
+// Tell the renderer process that a texture mailbox buffer is available from
+// video capture.
+IPC_MESSAGE_CONTROL5(VideoCaptureMsg_MailboxBufferReady,
+ int /* device_id */,
+ int /* buffer_id */,
+ gpu::MailboxHolder /* mailbox_holder */,
+ media::VideoCaptureFormat /* format */,
+ base::TimeTicks /* timestamp */)
// Start a video capture as |device_id|, a new id picked by the renderer
// process. The session to be started is determined by |params.session_id|.
@@ -66,6 +76,7 @@ IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop,
// Tell the browser process that the renderer has finished reading from
// a buffer previously delivered by VideoCaptureMsg_BufferReady.
-IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_BufferReady,
+IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_BufferReady,
int /* device_id */,
- int /* buffer_id */)
+ int /* buffer_id */,
+ uint32 /* syncpoint */)

Powered by Google App Engine
This is Rietveld 408576698