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

Unified Diff: remoting/protocol/webrtc_video_stream.cc

Issue 2425873002: Add network parameters fields in FrameStatsMessage (Closed)
Patch Set: . Created 4 years, 2 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
« no previous file with comments | « remoting/protocol/webrtc_frame_scheduler_simple.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_video_stream.cc
diff --git a/remoting/protocol/webrtc_video_stream.cc b/remoting/protocol/webrtc_video_stream.cc
index dcc4e4cf6e9d4c69e9bdb4aee4e0e8e50ad5e7ac..cdafb62ee163f5f1c4c8e1532000290b2512b904 100644
--- a/remoting/protocol/webrtc_video_stream.cc
+++ b/remoting/protocol/webrtc_video_stream.cc
@@ -219,11 +219,11 @@ void WebrtcVideoStream::OnFrameEncoded(EncodedFrameWithTimestamps frame) {
return;
}
- scheduler_->OnFrameEncoded(*frame.frame, result);
+ HostFrameStats stats;
+ scheduler_->OnFrameEncoded(*frame.frame, result, &stats);
// Send FrameStats message.
if (video_stats_dispatcher_.is_connected()) {
- HostFrameStats stats;
stats.frame_size = frame.frame->data.size();
if (!frame.timestamps->input_event_timestamps.is_null()) {
@@ -247,10 +247,6 @@ void WebrtcVideoStream::OnFrameEncoded(EncodedFrameWithTimestamps frame) {
stats.encode_delay = frame.timestamps->encode_ended_time -
frame.timestamps->encode_started_time;
- // TODO(sergeyu): Figure out how to measure send_pending time with WebRTC
- // and set it here.
- stats.send_pending_delay = base::TimeDelta();
-
video_stats_dispatcher_.OnVideoFrameStats(result.frame_id, stats);
}
}
« no previous file with comments | « remoting/protocol/webrtc_frame_scheduler_simple.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698