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

Unified Diff: content/public/renderer/media_stream_video_sink.h

Issue 883293005: Cast: Basic cast_receiver API for chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed extra BUILD.gn line Created 5 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/public/renderer/media_stream_video_sink.h
diff --git a/content/public/renderer/media_stream_video_sink.h b/content/public/renderer/media_stream_video_sink.h
index b154cb779b5a1fa937578fdc4027e0ae870d5b0b..2907f41ef55a6bf400aca593391a52cd6b6424a0 100644
--- a/content/public/renderer/media_stream_video_sink.h
+++ b/content/public/renderer/media_stream_video_sink.h
@@ -11,6 +11,7 @@
#include "base/time/time.h"
#include "content/common/content_export.h"
#include "content/public/renderer/media_stream_sink.h"
+#include "media/base/video_capturer_source.h"
namespace media {
class VideoCaptureFormat;
@@ -23,26 +24,7 @@ class WebMediaStreamTrack;
namespace content {
-// This callback is used to deliver video frames.
-//
-// |estimated_capture_time| - The capture time of the delivered video
-// frame. This field represents the local time at which either: 1) the frame was
-// generated, if it was done so locally; or 2) the targeted play-out time of the
-// frame, if it was generated from a remote source. Either way, an
-// implementation should not present the frame before this point-in-time. This
-// value is NOT a high-resolution timestamp, and so it should not be used as a
-// presentation time; but, instead, it should be used for buffering playback and
-// for A/V synchronization purposes. NOTE: It is possible for this value to be
-// null if the current implementation lacks this timing information.
-//
-// |video_frame->timestamp()| gives the presentation timestamp of the video
-// frame relative to the first frame generated by the corresponding source.
-// Because a source can start generating frames before a subscriber is added,
-// the first video frame delivered may not have timestamp equal to 0.
-typedef base::Callback<
- void(const scoped_refptr<media::VideoFrame>& video_frame,
- const media::VideoCaptureFormat& format,
- const base::TimeTicks& estimated_capture_time)>
+typedef media::VideoCapturerSource::VideoCaptureDeliverFrameCB
VideoCaptureDeliverFrameCB;
// MediaStreamVideoSink is an interface used for receiving video frames from a
« no previous file with comments | « content/common/media/video_capture_messages.h ('k') | content/renderer/media/media_stream_video_capture_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698