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

Unified Diff: content/browser/renderer_host/media/video_capture_controller_event_handler.h

Issue 2686763002: [Mojo Video Capture] Split OnIncomingCapturedVideoFrame() to OnNewBuffer() and OnFrameReadyInBuffer( (Closed)
Patch Set: rebase Created 3 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/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 b8a8a82bdf3884d44b2a658c39ea15bac083008a..301070cceaeddfb458131c7edae4349f59f45ba2 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
@@ -9,6 +9,7 @@
#include "base/memory/shared_memory.h"
#include "content/common/content_export.h"
+#include "content/common/video_capture.mojom.h"
#include "mojo/public/cpp/system/buffer.h"
#include "ui/gfx/geometry/size.h"
@@ -40,9 +41,10 @@ class CONTENT_EXPORT VideoCaptureControllerEventHandler {
int buffer_id) = 0;
// A buffer has been filled with a captured VideoFrame.
- virtual void OnBufferReady(VideoCaptureControllerID id,
- int buffer_id,
- const scoped_refptr<media::VideoFrame>& frame) = 0;
+ virtual void OnBufferReady(
+ VideoCaptureControllerID id,
+ int buffer_id,
+ const media::mojom::VideoFrameInfoPtr& frame_info) = 0;
// The capture session has ended and no more frames will be sent.
virtual void OnEnded(VideoCaptureControllerID id) = 0;

Powered by Google App Engine
This is Rietveld 408576698