Loading gfx/thebes/gfxPlatformGtk.cpp +14 −15 Original line number Diff line number Diff line Loading @@ -234,12 +234,9 @@ bool gfxPlatformGtk::InitVAAPIConfig(bool aForceEnabledByUser) { #ifdef MOZ_WAYLAND feature.EnableByDefault(); if (aForceEnabledByUser) { feature.UserForceEnable("Force enabled by pref"); } else { nsCString failureId; int32_t status = nsIGfxInfo::FEATURE_STATUS_UNKNOWN; nsCOMPtr<nsIGfxInfo> gfxInfo = components::GfxInfo::Service(); nsCString failureId; if (NS_FAILED(gfxInfo->GetFeatureStatus( nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING, failureId, &status))) { feature.Disable(FeatureStatus::BlockedNoGfxInfo, "gfxInfo is broken", Loading @@ -251,6 +248,8 @@ bool gfxPlatformGtk::InitVAAPIConfig(bool aForceEnabledByUser) { feature.Disable(FeatureStatus::Blocklisted, "Blocklisted by gfxInfo", failureId); } if (aForceEnabledByUser) { feature.UserForceEnable("Force enabled by pref"); } if (!gfxVars::UseEGL()) { feature.ForceDisable(FeatureStatus::Unavailable, "Requires EGL", Loading Loading
gfx/thebes/gfxPlatformGtk.cpp +14 −15 Original line number Diff line number Diff line Loading @@ -234,12 +234,9 @@ bool gfxPlatformGtk::InitVAAPIConfig(bool aForceEnabledByUser) { #ifdef MOZ_WAYLAND feature.EnableByDefault(); if (aForceEnabledByUser) { feature.UserForceEnable("Force enabled by pref"); } else { nsCString failureId; int32_t status = nsIGfxInfo::FEATURE_STATUS_UNKNOWN; nsCOMPtr<nsIGfxInfo> gfxInfo = components::GfxInfo::Service(); nsCString failureId; if (NS_FAILED(gfxInfo->GetFeatureStatus( nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING, failureId, &status))) { feature.Disable(FeatureStatus::BlockedNoGfxInfo, "gfxInfo is broken", Loading @@ -251,6 +248,8 @@ bool gfxPlatformGtk::InitVAAPIConfig(bool aForceEnabledByUser) { feature.Disable(FeatureStatus::Blocklisted, "Blocklisted by gfxInfo", failureId); } if (aForceEnabledByUser) { feature.UserForceEnable("Force enabled by pref"); } if (!gfxVars::UseEGL()) { feature.ForceDisable(FeatureStatus::Unavailable, "Requires EGL", Loading