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

Unified Diff: content/browser/renderer_host/media/video_capture_controller_event_handler.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/browser/renderer_host/media/video_capture_controller_event_handler.h
diff --git a/content/browser/renderer_host/media/video_capture_controller_event_handler.h b/content/browser/renderer_host/media/video_capture_controller_event_handler.h
index 7eecc094d3da74dfd944271709c0928e7c45fb8e..27c10e398e644d0472984773c90227ad159e405e 100644
--- a/content/browser/renderer_host/media/video_capture_controller_event_handler.h
+++ b/content/browser/renderer_host/media/video_capture_controller_event_handler.h
@@ -8,7 +8,18 @@
#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 {
@@ -43,8 +54,15 @@ class CONTENT_EXPORT VideoCaptureControllerEventHandler {
// A buffer has been filled with I420 video.
virtual void OnBufferReady(const VideoCaptureControllerID& id,
int buffer_id,
- base::TimeTicks timestamp,
- const media::VideoCaptureFormat& format) = 0;
+ 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;

Powered by Google App Engine
This is Rietveld 408576698