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

Unified Diff: webrtc/video/send_delay_stats.cc

Issue 2307913002: Update AvgCounter to have the ability to include last period metric for subsequent intervals withou… (Closed)
Patch Set: address comments Created 4 years, 3 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/send_delay_stats.cc
diff --git a/webrtc/video/send_delay_stats.cc b/webrtc/video/send_delay_stats.cc
index e84bf10287afbab25cce5b68f2db268de96e815f..0f73e1f888217c1f3c0c040b89f373939989d7f6 100644
--- a/webrtc/video/send_delay_stats.cc
+++ b/webrtc/video/send_delay_stats.cc
@@ -10,6 +10,8 @@
#include "webrtc/video/send_delay_stats.h"
+#include <utility>
+
#include "webrtc/base/logging.h"
#include "webrtc/system_wrappers/include/metrics.h"
@@ -61,7 +63,7 @@ AvgCounter* SendDelayStats::GetSendDelayCounter(uint32_t ssrc) {
if (it != send_delay_counters_.end())
return it->second.get();
- AvgCounter* counter = new AvgCounter(clock_, nullptr);
+ AvgCounter* counter = new AvgCounter(clock_, nullptr, false);
send_delay_counters_[ssrc].reset(counter);
return counter;
}
« webrtc/call/call.cc ('K') | « webrtc/call/call.cc ('k') | webrtc/video/stats_counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698