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..f66af4ff34a0834df194818724f48f5859a15afd 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:49:27
class
åsapersson
2015/09/17 14:12:03
Done.
|
+ 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 bw_limited_sent_frame_counter_ GUARDED_BY(crit_); |
}; |
} // namespace webrtc |