Chromium Code Reviews| Index: remoting/client/software_video_renderer.cc |
| diff --git a/remoting/client/software_video_renderer.cc b/remoting/client/software_video_renderer.cc |
| index 51782e05f476f4942a30408a7e52d0214cc0a80f..b58d5b439722b93b0e5561135eee8c6f375152ae 100644 |
| --- a/remoting/client/software_video_renderer.cc |
| +++ b/remoting/client/software_video_renderer.cc |
| @@ -352,16 +352,19 @@ void SoftwareVideoRenderer::ProcessVideoPacket(scoped_ptr<VideoPacket> packet, |
| // If the video packet is empty then drop it. Empty packets are used to |
| // maintain activity on the network. |
| + stats_.video_packet_rate_uma()->Record(1); |
|
Wez
2015/07/08 23:42:30
nit: This line belongs above the comment.
anandc
2015/07/09 19:17:10
Done.
|
| if (!packet->has_data() || packet->data().size() == 0) { |
| done.Run(); |
| return; |
| } |
| - // Add one frame to the counter. |
| - stats_.video_frame_rate()->Record(1); |
| + // Add one frame to the video frame rate counters. |
| + stats_.video_bandwidth_display()->Record(1); |
| + stats_.video_bandwidth_uma()->Record(1); |
| // Record other statistics received from host. |
| - stats_.video_bandwidth()->Record(packet->data().size()); |
| + stats_.video_frame_rate_display()->Record(packet->data().size()); |
| + stats_.video_frame_rate_uma()->Record(packet->data().size()); |
| if (packet->has_capture_time_ms()) |
| stats_.video_capture_ms()->Record(packet->capture_time_ms()); |
| if (packet->has_encode_time_ms()) |