Bug 1773282 [Linux] Don't print VP8_HW_DECODE/VP9_HW_DECODE on about:support on Linux as it's not used there r=alwu

Differential Revision: https://phabricator.services.mozilla.com/D149763
This commit is contained in:
stransky 2022-06-29 12:09:02 +00:00
Родитель 9d7fa70705
Коммит 59dfb5f41a
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -2778,7 +2778,9 @@ void gfxPlatform::InitHardwareVideoConfig() {
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)) {
@ -2788,8 +2790,9 @@ 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);