Bug 1521181 - Pref on RDD/AV1 for OSX. r=drno
authorMichael Froman <mfroman@mozilla.com>
Fri, 18 Jan 2019 20:59:23 +0000
changeset 511701 35418acc5dc72f99920066ae96de8be11c39595c
parent 511616 1c7ed5d9e1fe429f8a753b40156744b73ef12cda
child 511702 eb47c0869f76c4dc5566f4ffb796d5dba98a90f1
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdrno
bugs1521181
milestone66.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 1521181 - Pref on RDD/AV1 for OSX. r=drno Differential Revision: https://phabricator.services.mozilla.com/D17025
modules/libpref/init/StaticPrefList.h
modules/libpref/init/all.js
--- a/modules/libpref/init/StaticPrefList.h
+++ b/modules/libpref/init/StaticPrefList.h
@@ -1142,16 +1142,18 @@ VARCACHE_PREF(
   "media.gpu-process-decoder",
    MediaGpuProcessDecoder,
   RelaxedAtomicBool, PREF_VALUE
 )
 #undef PREF_VALUE
 
 #if defined(XP_WIN) && !defined(_ARM64_)
 # define PREF_VALUE true
+#elif defined(XP_MACOSX)
+# define PREF_VALUE true
 #else
 # define PREF_VALUE false
 #endif
 VARCACHE_PREF(
   "media.rdd-process.enabled",
    MediaRddProcessEnabled,
   RelaxedAtomicBool, PREF_VALUE
 )
@@ -1463,16 +1465,18 @@ VARCACHE_PREF(
   "media.webm.enabled",
    MediaWebMEnabled,
   RelaxedAtomicBool, true
 )
 
 // AV1
 #if defined(XP_WIN) && !defined(_ARM64_)
 # define PREF_VALUE true
+#elif defined(XP_MACOSX)
+# 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
@@ -648,16 +648,18 @@ pref("media.audioipc.pool_size", 2);
 pref("media.audioipc.stack_size", 262144);
 #else
 pref("media.cubeb.sandbox", false);
 #endif
 
 #ifdef MOZ_AV1
 #if defined(XP_WIN) && !defined(_ARM64_)
 pref("media.av1.enabled", true);
+#elif defined(XP_MACOSX)
+pref("media.av1.enabled", true);
 #else
 pref("media.av1.enabled", false);
 #endif
 // Use libdav1d instead of libaom
 pref("media.av1.use-dav1d", false);
 #endif
 
 pref("media.webaudio.audiocontextoptions-samplerate.enabled", true);