Bug 1595994 - P23. Allow libvpx with alpha plane decoding in RDD process. r=mattwoodrow

Depends on D92863

Differential Revision: https://phabricator.services.mozilla.com/D92362
This commit is contained in:
Jean-Yves Avenard 2020-10-20 23:30:58 +00:00
Родитель 30f42deea0
Коммит 462245b388
1 изменённых файлов: 1 добавлений и 4 удалений

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

@ -113,10 +113,7 @@ bool AgnosticDecoderModule::Supports(
// something goes wrong with launching the RDD process.
(AOMDecoder::IsAV1(mimeType) && IsAvailable(DecoderType::AV1)) ||
#endif
// We currently can't allocate a SharedRGBImage in the RDD process
// (see bug 1668840) required to decode a video with an alpha channel.
(VPXDecoder::IsVPX(mimeType) && IsAvailable(DecoderType::VPX) &&
(!trackInfo.GetAsVideoInfo()->HasAlpha() || !XRE_IsRDDProcess())) ||
(VPXDecoder::IsVPX(mimeType) && IsAvailable(DecoderType::VPX)) ||
(TheoraDecoder::IsTheora(mimeType) && IsAvailable(DecoderType::Theora)) ||
(VorbisDataDecoder::IsVorbis(mimeType) &&
IsAvailable(DecoderType::Vorbis)) ||