Bug 1534814 - pref on rdd and av1 for linux. r=drno
authorMichael Froman <mfroman@mozilla.com>
Fri, 15 Mar 2019 21:00:48 +0000
changeset 464445 e58902a844dd
parent 464444 589f41b2e253
child 464446 54ae8fe6502b
push id35716
push useraciure@mozilla.com
push dateSun, 17 Mar 2019 09:42:17 +0000
treeherdermozilla-central@8ee97c045359 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdrno
bugs1534814
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1534814 - pref on rdd and av1 for linux. r=drno Differential Revision: https://phabricator.services.mozilla.com/D23255
modules/libpref/init/StaticPrefList.h
modules/libpref/init/all.js
--- a/modules/libpref/init/StaticPrefList.h
+++ b/modules/libpref/init/StaticPrefList.h
@@ -1291,16 +1291,18 @@ VARCACHE_PREF(
   RelaxedAtomicBool, PREF_VALUE
 )
 #undef PREF_VALUE
 
 #if defined(XP_WIN) && !defined(_ARM64_)
 # define PREF_VALUE true
 #elif defined(XP_MACOSX)
 # define PREF_VALUE true
+#elif defined(XP_UNIX)
+# define PREF_VALUE true
 #else
 # define PREF_VALUE false
 #endif
 VARCACHE_PREF(
   "media.rdd-process.enabled",
    MediaRddProcessEnabled,
   RelaxedAtomicBool, PREF_VALUE
 )
@@ -1620,16 +1622,18 @@ VARCACHE_PREF(
   RelaxedAtomicBool, true
 )
 
 // AV1
 #if defined(XP_WIN) && !defined(_ARM64_)
 # define PREF_VALUE true
 #elif defined(XP_MACOSX)
 # define PREF_VALUE true
+#elif defined(XP_UNIX)
+# define PREF_VALUE true
 #else
 # define PREF_VALUE false
 #endif
 VARCACHE_PREF(
   "media.av1.enabled",
    MediaAv1Enabled,
   RelaxedAtomicBool, PREF_VALUE
 )
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -658,16 +658,19 @@ pref("media.cubeb.sandbox", false);
 
 #ifdef MOZ_AV1
 #if defined(XP_WIN) && !defined(_ARM64_)
 pref("media.av1.enabled", true);
 pref("media.av1.use-dav1d", true);
 #elif defined(XP_MACOSX)
 pref("media.av1.enabled", true);
 pref("media.av1.use-dav1d", true);
+#elif defined(XP_UNIX)
+pref("media.av1.enabled", true);
+pref("media.av1.use-dav1d", false);
 #else
 pref("media.av1.enabled", false);
 pref("media.av1.use-dav1d", false);
 #endif
 #endif
 
 pref("media.webaudio.audiocontextoptions-samplerate.enabled", true);