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

Unified Diff: webrtc/video/stats_counter.cc

Issue 2236923002: Make variable for selecting if intervals without samples should be included in stats configurable (… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « webrtc/video/stats_counter.h ('k') | webrtc/video/stats_counter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/stats_counter.cc
diff --git a/webrtc/video/stats_counter.cc b/webrtc/video/stats_counter.cc
index 918e998c4db858580aa7d0ef338f6aaf38a72432..42d23adcfc60f71015e690090c8d779e47959421 100644
--- a/webrtc/video/stats_counter.cc
+++ b/webrtc/video/stats_counter.cc
@@ -195,10 +195,10 @@ bool PermilleCounter::GetMetric(int* metric) const {
return true;
}
-RateCounter::RateCounter(Clock* clock, StatsCounterObserver* observer)
- : StatsCounter(clock,
- true, // |include_empty_intervals|
- observer) {}
+RateCounter::RateCounter(Clock* clock,
+ StatsCounterObserver* observer,
+ bool include_empty_intervals)
+ : StatsCounter(clock, include_empty_intervals, observer) {}
void RateCounter::Add(int sample) {
StatsCounter::Add(sample);
@@ -211,10 +211,10 @@ bool RateCounter::GetMetric(int* metric) const {
return true;
}
-RateAccCounter::RateAccCounter(Clock* clock, StatsCounterObserver* observer)
- : StatsCounter(clock,
- true, // |include_empty_intervals|
- observer) {}
+RateAccCounter::RateAccCounter(Clock* clock,
+ StatsCounterObserver* observer,
+ bool include_empty_intervals)
+ : StatsCounter(clock, include_empty_intervals, observer) {}
void RateAccCounter::Set(int sample) {
StatsCounter::Set(sample);
« no previous file with comments | « webrtc/video/stats_counter.h ('k') | webrtc/video/stats_counter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698