Bug 1362212 - Implement HTMLMediaElement.reportCanPlayTelemetry. r=gerald

Defer determining whether we have usable decoders to an off-main thread in
order to avoid janking the main thread.

MozReview-Commit-ID: Ape5zEBBMrz
This commit is contained in:
Chris Pearce
2017-05-10 11:31:16 +12:00
parent 96bd9d8648
commit 0ffdf7dd9f
4 changed files with 50 additions and 1 deletions

View File

@@ -102,6 +102,8 @@ public:
explicit HTMLMediaElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo);
void ReportCanPlayTelemetry();
/**
* This is used when the browser is constructing a video element to play
* a channel that we've already started loading. The src attribute and