| Index: webrtc/video_engine/vie_encoder.cc
|
| diff --git a/webrtc/video_engine/vie_encoder.cc b/webrtc/video_engine/vie_encoder.cc
|
| index cc4783f55bc4c0e20b34fefbe2ae5c289b1ad1ed..6ae8f5dffb5dba429598cd205cebb311c74a82c6 100644
|
| --- a/webrtc/video_engine/vie_encoder.cc
|
| +++ b/webrtc/video_engine/vie_encoder.cc
|
| @@ -137,8 +137,7 @@ ViEEncoder::ViEEncoder(int32_t channel_id,
|
| picture_id_sli_(0),
|
| has_received_rpsi_(false),
|
| picture_id_rpsi_(0),
|
| - video_suspended_(false),
|
| - start_ms_(Clock::GetRealTimeClock()->TimeInMilliseconds()) {
|
| + video_suspended_(false) {
|
| bitrate_observer_.reset(new ViEBitrateObserver(this));
|
| }
|
|
|
| @@ -175,25 +174,6 @@ void ViEEncoder::StopThreadsAndRemoveSharedMembers() {
|
| }
|
|
|
| ViEEncoder::~ViEEncoder() {
|
| - UpdateHistograms();
|
| -}
|
| -
|
| -void ViEEncoder::UpdateHistograms() {
|
| - int64_t elapsed_sec =
|
| - (Clock::GetRealTimeClock()->TimeInMilliseconds() - start_ms_) / 1000;
|
| - if (elapsed_sec < metrics::kMinRunTimeInSeconds) {
|
| - return;
|
| - }
|
| - webrtc::VCMFrameCount frames;
|
| - if (vcm_->SentFrameCount(frames) != VCM_OK) {
|
| - return;
|
| - }
|
| - uint32_t total_frames = frames.numKeyFrames + frames.numDeltaFrames;
|
| - if (total_frames > 0) {
|
| - RTC_HISTOGRAM_COUNTS_1000("WebRTC.Video.KeyFramesSentInPermille",
|
| - static_cast<int>(
|
| - (frames.numKeyFrames * 1000.0f / total_frames) + 0.5f));
|
| - }
|
| }
|
|
|
| int ViEEncoder::Owner() const {
|
|
|