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..647b458802a7e7cc832e5c45998cf41a2be474ec 100644 |
--- a/remoting/client/software_video_renderer.cc |
+++ b/remoting/client/software_video_renderer.cc |
@@ -350,6 +350,7 @@ void SoftwareVideoRenderer::ProcessVideoPacket(scoped_ptr<VideoPacket> packet, |
const base::Closure& done) { |
DCHECK(CalledOnValidThread()); |
+ stats_.video_packet_rate()->Record(1); |
Wez
2015/07/14 20:24:17
See comments in the Pepper 3D renderer re layout &
anandc
2015/07/15 03:59:55
Done.
|
// If the video packet is empty then drop it. Empty packets are used to |
// maintain activity on the network. |
if (!packet->has_data() || packet->data().size() == 0) { |
@@ -357,11 +358,11 @@ void SoftwareVideoRenderer::ProcessVideoPacket(scoped_ptr<VideoPacket> packet, |
return; |
} |
- // Add one frame to the counter. |
- stats_.video_frame_rate()->Record(1); |
+ // Add one frame to the video frame rate counters. |
Wez
2015/07/14 20:24:17
You're only updating a single counter here, though
anandc
2015/07/15 03:59:55
Done. Holdover from a previous patch-set. Thanks f
|
+ stats_.video_bandwidth()->Record(1); |
Wez
2015/07/14 20:24:17
Looks like you've mistakenly swapped bandwidth & f
anandc
2015/07/15 03:59:55
Aargh, and didn't catch it even with a diff. Thank
|
// Record other statistics received from host. |
- stats_.video_bandwidth()->Record(packet->data().size()); |
+ stats_.video_frame_rate()->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()) |