зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1777368 [Linux] Don't init VP8_HW_DECODE/VP9_HW_DECODE features on Linux as they're not used r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D150739
This commit is contained in:
Родитель
8d593dcc05
Коммит
350446cc4b
|
@ -2783,13 +2783,16 @@ void gfxPlatform::InitHardwareVideoConfig() {
|
|||
return;
|
||||
}
|
||||
|
||||
// We don't use selective VP8/9 decode control on Linux.
|
||||
if (kIsWayland || kIsX11) {
|
||||
return;
|
||||
}
|
||||
|
||||
nsCString message;
|
||||
nsCString failureId;
|
||||
|
||||
FeatureState& featureVP8 = gfxConfig::GetFeature(Feature::VP8_HW_DECODE);
|
||||
#ifndef MOZ_WIDGET_GTK
|
||||
featureVP8.EnableByDefault();
|
||||
#endif
|
||||
|
||||
if (!IsGfxInfoStatusOkay(nsIGfxInfo::FEATURE_VP8_HW_DECODE, &message,
|
||||
failureId)) {
|
||||
|
@ -2799,9 +2802,8 @@ void gfxPlatform::InitHardwareVideoConfig() {
|
|||
gfxVars::SetUseVP8HwDecode(featureVP8.IsEnabled());
|
||||
|
||||
FeatureState& featureVP9 = gfxConfig::GetFeature(Feature::VP9_HW_DECODE);
|
||||
#ifndef MOZ_WIDGET_GTK
|
||||
featureVP9.EnableByDefault();
|
||||
#endif
|
||||
|
||||
if (!IsGfxInfoStatusOkay(nsIGfxInfo::FEATURE_VP9_HW_DECODE, &message,
|
||||
failureId)) {
|
||||
featureVP9.Disable(FeatureStatus::Blocklisted, message.get(), failureId);
|
||||
|
|
Загрузка…
Ссылка в новой задаче