| Index: webrtc/video/send_statistics_proxy.cc
|
| diff --git a/webrtc/video/send_statistics_proxy.cc b/webrtc/video/send_statistics_proxy.cc
|
| index a996976e5d48aa8fa0ea33be0bba100f129ef94a..129c66c62302dd61daa4d715e445572218117271 100644
|
| --- a/webrtc/video/send_statistics_proxy.cc
|
| +++ b/webrtc/video/send_statistics_proxy.cc
|
| @@ -487,7 +487,6 @@ void SendStatisticsProxy::OnSendEncodedImage(
|
|
|
| uma_container_->key_frame_counter_.Add(encoded_image._frameType ==
|
| kVideoFrameKey);
|
| -
|
| stats_.bw_limited_resolution =
|
| encoded_image.adapt_reason_.quality_resolution_downscales > 0 ||
|
| encoded_image.adapt_reason_.bw_resolutions_disabled > 0;
|
| @@ -569,10 +568,11 @@ void SendStatisticsProxy::OnIncomingFrame(int width, int height) {
|
| uma_container_->cpu_limited_frame_counter_.Add(stats_.cpu_limited_resolution);
|
| }
|
|
|
| -void SendStatisticsProxy::SetCpuRestrictedResolution(
|
| - bool cpu_restricted_resolution) {
|
| +void SendStatisticsProxy::SetResolutionRestrictionStats(bool bandwidth,
|
| + bool cpu) {
|
| rtc::CritScope lock(&crit_);
|
| - stats_.cpu_limited_resolution = cpu_restricted_resolution;
|
| + stats_.bw_limited_resolution = bandwidth;
|
| + stats_.cpu_limited_resolution = cpu;
|
| }
|
|
|
| void SendStatisticsProxy::OnCpuRestrictedResolutionChanged(
|
| @@ -582,6 +582,13 @@ void SendStatisticsProxy::OnCpuRestrictedResolutionChanged(
|
| ++stats_.number_of_cpu_adapt_changes;
|
| }
|
|
|
| +void SendStatisticsProxy::OnQualityRestrictedResolutionChanged(
|
| + bool restricted) {
|
| + rtc::CritScope lock(&crit_);
|
| + uma_container_->quality_downscales_counter_.Add(restricted);
|
| + stats_.bw_limited_resolution = restricted;
|
| +}
|
| +
|
| void SendStatisticsProxy::RtcpPacketTypesCounterUpdated(
|
| uint32_t ssrc,
|
| const RtcpPacketTypeCounter& packet_counter) {
|
|
|