Bug 1362212 - Add chromeonly HTMLMediaElement.reportCanPlayTelemetry. r=bz

This enables the Firefox front end code to call into Gecko to direct it to report
telemetry as to whether we have available platform decoders at an opportune moment
where doing so is unlikely to cause jank.

Gecko can then dispatch a task to collect this information on a non-main thread
as in order to determine whether we have platform decoders requires us to load
shared libraries from disk, which can cause jank.


MozReview-Commit-ID: GkQEAqWc1aQ

--HG--
extra : rebase_source : 72143eab27dd608723ef7eaa7700aa95ab10d3f5
This commit is contained in:
Chris Pearce 2017-05-10 11:30:47 +12:00
Родитель b1275c271a
Коммит a9d9ef46a2
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -138,6 +138,9 @@ partial interface HTMLMediaElement {
// the media element has a fragment URI for the currentSrc, otherwise
// it is equal to the media duration.
readonly attribute double mozFragmentEnd;
[ChromeOnly]
void reportCanPlayTelemetry();
};
// Encrypted Media Extensions