Backed out changeset c7be30a5321e (bug 1238433) for bustage

This commit is contained in:
Carsten "Tomcat" Book
2016-02-18 10:52:03 +01:00
parent 9e4d337f34
commit c755b9eb56
2 changed files with 0 additions and 23 deletions

View File

@@ -108,9 +108,6 @@ static mozilla::LazyLogModule gMediaElementEventsLog("nsMediaElementEvents");
#include "mozilla/EventStateManager.h"
#include "mozilla/dom/HTMLVideoElement.h"
#include "mozilla/dom/VideoPlaybackQuality.h"
using namespace mozilla::layers;
using mozilla::net::nsMediaFragmentURIParser;
@@ -2704,17 +2701,6 @@ HTMLMediaElement::ReportMSETelemetry()
}
}
if (HTMLVideoElement* vid = HTMLVideoElement::FromContentOrNull(this)) {
RefPtr<VideoPlaybackQuality> quality = vid->GetVideoPlaybackQuality();
uint64_t totalFrames = quality->TotalVideoFrames();
uint64_t droppedFrames = quality->DroppedVideoFrames();
uint32_t percentage = 100 * droppedFrames / totalFrames;
LOG(LogLevel::Debug,
("Reporting telemetry DROPPED_FRAMES_IN_VIDEO_PLAYBACK"));
Telemetry::Accumulate(Telemetry::VIDEO_DROPPED_FRAMES_PROPORTION,
percentage);
}
Telemetry::Accumulate(Telemetry::VIDEO_MSE_UNLOAD_STATE, state);
LOG(LogLevel::Debug, ("%p VIDEO_MSE_UNLOAD_STATE = %d", this, state));