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

Unified Diff: media/cast/cast_sender_impl.cc

Issue 69603002: Incorporating logging into Cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up Created 7 years, 1 month 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: media/cast/cast_sender_impl.cc
diff --git a/media/cast/cast_sender_impl.cc b/media/cast/cast_sender_impl.cc
index 1bdd7c51f28775b27796da1302e782d975acf93f..4e1107a541ccd0b0d2af2df20c83985f1f1b2bb2 100644
--- a/media/cast/cast_sender_impl.cc
+++ b/media/cast/cast_sender_impl.cc
@@ -34,6 +34,9 @@ class LocalFrameInput : public FrameInput {
virtual void InsertRawVideoFrame(const I420VideoFrame* video_frame,
const base::TimeTicks& capture_time,
const base::Closure callback) OVERRIDE {
+ cast_environment_->Logging()->InsertFrameEvent(kVideoFrameReceived,
+ GetVideoRtpTimestamp(capture_time), -1);
Alpha Left Google 2013/11/14 00:29:24 Add a TODO here to replace -1 with something meani
mikhal 2013/11/14 17:42:31 Added a const value for his. The -1 will be a vali
+
cast_environment_->PostTask(CastEnvironment::MAIN, FROM_HERE,
base::Bind(&VideoSender::InsertRawVideoFrame, video_sender_,
video_frame, capture_time, callback));
@@ -50,6 +53,8 @@ class LocalFrameInput : public FrameInput {
virtual void InsertAudio(const AudioBus* audio_bus,
const base::TimeTicks& recorded_time,
const base::Closure& done_callback) OVERRIDE {
+ cast_environment_->Logging()->InsertFrameEvent(kAudioFrameReceived,
+ GetVideoRtpTimestamp(recorded_time), -1);
Alpha Left Google 2013/11/14 00:29:24 Add a TODO here to replace -1 with something meani
mikhal 2013/11/14 17:42:31 Same as above On 2013/11/14 00:29:24, Alpha wrote:
cast_environment_->PostTask(CastEnvironment::MAIN, FROM_HERE,
base::Bind(&AudioSender::InsertAudio, audio_sender_,
audio_bus, recorded_time, done_callback));

Powered by Google App Engine
This is Rietveld 408576698