Backed out changeset c7be30a5321e (bug 1238433) for bustage
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user