| Index: remoting/protocol/frame_stats.cc
|
| diff --git a/remoting/protocol/frame_stats.cc b/remoting/protocol/frame_stats.cc
|
| index 80bf7c296db4b855b4ece9b92158b64c20302508..ca9ad4b75434c84f9b594446f91893b60bebfd75 100644
|
| --- a/remoting/protocol/frame_stats.cc
|
| +++ b/remoting/protocol/frame_stats.cc
|
| @@ -84,11 +84,17 @@ HostFrameStats HostFrameStats::FromFrameStatsMessage(
|
| result.encode_pending_delay =
|
| base::TimeDelta::FromMilliseconds(message.encode_pending_time_ms());
|
| }
|
| -
|
| if (message.has_send_pending_time_ms()) {
|
| result.send_pending_delay =
|
| base::TimeDelta::FromMilliseconds(message.send_pending_time_ms());
|
| }
|
| + if (message.has_rtt_estimate_ms()) {
|
| + result.rtt_estimate =
|
| + base::TimeDelta::FromMilliseconds(message.rtt_estimate_ms());
|
| + }
|
| + if (message.has_bandwidth_estimate_kbps()) {
|
| + result.bandwidth_estimate_kbps = message.bandwidth_estimate_kbps();
|
| + }
|
|
|
| return result;
|
| }
|
| @@ -121,7 +127,12 @@ void HostFrameStats::ToFrameStatsMessage(FrameStatsMessage* message_out) const {
|
| if (send_pending_delay != base::TimeDelta::Max()) {
|
| message_out->set_send_pending_time_ms(send_pending_delay.InMilliseconds());
|
| }
|
| -
|
| + if (rtt_estimate != base::TimeDelta::Max()) {
|
| + message_out->set_rtt_estimate_ms(rtt_estimate.InMilliseconds());
|
| + }
|
| + if (bandwidth_estimate_kbps >= 0) {
|
| + message_out->set_bandwidth_estimate_kbps(bandwidth_estimate_kbps);
|
| + }
|
| }
|
|
|
| FrameStats::FrameStats() = default;
|
|
|