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

Unified Diff: webrtc/video/receive_statistics_proxy.cc

Issue 2607933002: RTCMediaStreamTrackStats.framesDropped collected by RTCStatsCollector. (Closed)
Patch Set: Added unittests for webrtcvideoengine2 and receive_statistics_proxy Created 3 years, 11 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
Index: webrtc/video/receive_statistics_proxy.cc
diff --git a/webrtc/video/receive_statistics_proxy.cc b/webrtc/video/receive_statistics_proxy.cc
index 673fabb7bbb239da044530a2d74c1a0a2b09c691..68050ba6a8a440dcc3eb31a4edf22127d99949c0 100644
--- a/webrtc/video/receive_statistics_proxy.cc
+++ b/webrtc/video/receive_statistics_proxy.cc
@@ -414,6 +414,7 @@ void ReceiveStatisticsProxy::OnRenderedFrame(const VideoFrame& frame) {
rtc::CritScope lock(&crit_);
renders_fps_estimator_.Update(1, now);
stats_.render_frame_rate = renders_fps_estimator_.Rate(now).value_or(0);
+ ++stats_.frames_rendered;
stats_.width = width;
stats_.height = height;
render_width_counter_.Add(width);

Powered by Google App Engine
This is Rietveld 408576698