| 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);
|
| }
|
| }
|
|
|