| Index: webrtc/video/receive_statistics_proxy.cc
 | 
| diff --git a/webrtc/video/receive_statistics_proxy.cc b/webrtc/video/receive_statistics_proxy.cc
 | 
| index b6063a80afbb1719b2c013a0881a52910da3a38d..0e285abb1d1787e98f8a7797081d4a2860850a3f 100644
 | 
| --- a/webrtc/video/receive_statistics_proxy.cc
 | 
| +++ b/webrtc/video/receive_statistics_proxy.cc
 | 
| @@ -10,6 +10,7 @@
 | 
|  
 | 
|  #include "webrtc/video/receive_statistics_proxy.h"
 | 
|  
 | 
| +#include "webrtc/modules/video_coding/codecs/interface/video_codec_interface.h"
 | 
|  #include "webrtc/system_wrappers/interface/clock.h"
 | 
|  #include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
 | 
|  #include "webrtc/system_wrappers/interface/metrics.h"
 | 
| @@ -47,6 +48,10 @@ void ReceiveStatisticsProxy::UpdateHistograms() {
 | 
|      RTC_HISTOGRAM_COUNTS_10000("WebRTC.Video.ReceivedWidthInPixels", width);
 | 
|      RTC_HISTOGRAM_COUNTS_10000("WebRTC.Video.ReceivedHeightInPixels", height);
 | 
|    }
 | 
| +  int qp = qp_counters_.vp8.Avg(kMinRequiredSamples);
 | 
| +  if (qp != -1)
 | 
| +    RTC_HISTOGRAM_COUNTS_200("WebRTC.Video.Decoded.Vp8.Qp", qp);
 | 
| +
 | 
|    // TODO(asapersson): DecoderTiming() is call periodically (each 1000ms) and
 | 
|    // not per frame. Change decode time to include every frame.
 | 
|    const int kMinRequiredDecodeSamples = 5;
 | 
| @@ -163,6 +168,17 @@ void ReceiveStatisticsProxy::OnDiscardedPacketsUpdated(int discarded_packets) {
 | 
|    stats_.discarded_packets = discarded_packets;
 | 
|  }
 | 
|  
 | 
| +void ReceiveStatisticsProxy::Encoded(
 | 
| +    const EncodedImage& encoded_image,
 | 
| +    const CodecSpecificInfo* codec_specific_info) {
 | 
| +  if (codec_specific_info == nullptr || encoded_image.qp_ == -1) {
 | 
| +    return;
 | 
| +  }
 | 
| +  if (codec_specific_info->codecType == kVideoCodecVP8) {
 | 
| +    qp_counters_.vp8.Add(encoded_image.qp_);
 | 
| +  }
 | 
| +}
 | 
| +
 | 
|  void ReceiveStatisticsProxy::SampleCounter::Add(int sample) {
 | 
|    sum += sample;
 | 
|    ++num_samples;
 | 
| 
 |