Bug 1548795 - P1. Don't use StaticPrefs in GPU process. r=mattwoodrow

Differential Revision: https://phabricator.services.mozilla.com/D29984

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jean-Yves Avenard 2019-05-09 23:12:12 +00:00
Родитель faf9a5d054
Коммит 92822b915d
3 изменённых файлов: 3 добавлений и 8 удалений

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

@ -90,7 +90,7 @@ void WMFDecoderModule::Init() {
sDXVAEnabled = sDXVAEnabled && gfx::gfxVars::CanUseHardwareVideoDecoding();
testForVPx = testForVPx && gfx::gfxVars::CanUseHardwareVideoDecoding();
if (testForVPx && StaticPrefs::MediaWmfVp9Enabled()) {
if (testForVPx && gfxPrefs::MediaWmfVp9Enabled()) {
gfx::WMFVPXVideoCrashGuard guard;
if (!guard.Crashed()) {
sUsableVPXMFT = CanCreateMFTDecoder(CLSID_WebmMfVpxDec);

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

@ -741,7 +741,8 @@ class gfxPrefs final {
DECL_GFX_PREF(Live, "media.wmf.skip-blacklist", PDMWMFSkipBlacklist, bool, false);
DECL_GFX_PREF(Live, "media.wmf.deblacklisting-for-telemetry-in-gpu-process", PDMWMFDeblacklistingForTelemetryInGPUProcess, bool, false);
DECL_GFX_PREF(Live, "media.wmf.amd.highres.enabled", PDMWMFAMDHighResEnabled, bool, true);
DECL_GFX_PREF(Live, "media.wmf.allow-unsupported-resolutions", PDMWMFAllowUnsupportedResolutions, bool, false);
DECL_GFX_PREF(Live, "media.wmf.allow-unsupported-resolutions", PDMWMFAllowUnsupportedResolutions, bool, false);
DECL_GFX_PREF(Once, "media.wmf.vp9.enabled", MediaWmfVp9Enabled, bool, true);
#endif
// These affect how line scrolls from wheel events will be accelerated.

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

@ -1798,12 +1798,6 @@ VARCACHE_PREF(
bool, false
)
VARCACHE_PREF(
"media.wmf.vp9.enabled",
MediaWmfVp9Enabled,
RelaxedAtomicBool, true
)
#endif // MOZ_WMF
// Whether to check the decoder supports recycling.