Index: webrtc/video/send_statistics_proxy.h |
diff --git a/webrtc/video/send_statistics_proxy.h b/webrtc/video/send_statistics_proxy.h |
index 60d962f93b3a1cdf541868fab929001fdce7d801..5a266e7010a6de2b5ccf323d3676ceb751a976bc 100644 |
--- a/webrtc/video/send_statistics_proxy.h |
+++ b/webrtc/video/send_statistics_proxy.h |
@@ -102,6 +102,15 @@ class SendStatisticsProxy : public CpuOveruseMetricsObserver, |
int sum; |
int num_samples; |
}; |
+ struct BoolSampleCounter { |
stefan-webrtc
2015/09/16 07:36:57
I'd prefer this to be a class I think. Same with S
åsapersson
2015/09/17 14:24:45
Done in another cl (bw limited stats cl).
|
+ BoolSampleCounter() : sum(0), num_samples(0) {} |
+ void Add(bool sample); |
+ int Percent(int min_required_samples) const; |
+ |
+ private: |
+ int sum; |
+ int num_samples; |
+ }; |
struct StatsUpdateTimes { |
StatsUpdateTimes() : resolution_update_ms(0) {} |
int64_t resolution_update_ms; |
@@ -129,6 +138,7 @@ class SendStatisticsProxy : public CpuOveruseMetricsObserver, |
SampleCounter sent_width_counter_ GUARDED_BY(crit_); |
SampleCounter sent_height_counter_ GUARDED_BY(crit_); |
SampleCounter encode_time_counter_ GUARDED_BY(crit_); |
+ BoolSampleCounter quality_limited_sent_frame_counter_ GUARDED_BY(crit_); |
}; |
} // namespace webrtc |