Bug 1452146 - flip av1 and rdd on for Win. r=drno a=RyanVM
authorMichael Froman <mfroman@mozilla.com>
Thu, 06 Dec 2018 15:39:23 +0000
changeset 508993 d9d17041ca841fc9b80dc40eb926e376fd58a903
parent 508992 d5f982689c717bba98621154f5dde808319eaa91
child 508994 34ce66233646020c044a3229ec905c236556ed81
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdrno, RyanVM
bugs1452146
milestone65.0
Bug 1452146 - flip av1 and rdd on for Win. r=drno a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D13482
modules/libpref/init/StaticPrefList.h
modules/libpref/init/all.js
--- a/modules/libpref/init/StaticPrefList.h
+++ b/modules/libpref/init/StaticPrefList.h
@@ -1092,21 +1092,27 @@ VARCACHE_PREF(
 #endif
 VARCACHE_PREF(
   "media.gpu-process-decoder",
    MediaGpuProcessDecoder,
   RelaxedAtomicBool, PREF_VALUE
 )
 #undef PREF_VALUE
 
+#if defined(XP_WIN)
+# define PREF_VALUE true
+#else
+# define PREF_VALUE false
+#endif
 VARCACHE_PREF(
   "media.rdd-process.enabled",
    MediaRddProcessEnabled,
-  RelaxedAtomicBool, false
+  RelaxedAtomicBool, PREF_VALUE
 )
+#undef PREF_VALUE
 
 VARCACHE_PREF(
   "media.rdd-process.startup_timeout_ms",
    MediaRddProcessStartupTimeoutMs,
   RelaxedAtomicInt32, 5000
 )
 
 #ifdef ANDROID
@@ -1407,21 +1413,27 @@ VARCACHE_PREF(
 // WebM
 VARCACHE_PREF(
   "media.webm.enabled",
    MediaWebMEnabled,
   RelaxedAtomicBool, true
 )
 
 // AV1
+#if defined(XP_WIN)
+# define PREF_VALUE true
+#else
+# define PREF_VALUE false
+#endif
 VARCACHE_PREF(
   "media.av1.enabled",
    MediaAv1Enabled,
-  RelaxedAtomicBool, false
+  RelaxedAtomicBool, PREF_VALUE
 )
+#undef PREF_VALUE
 VARCACHE_PREF(
   "media.av1.use-dav1d",
    MediaAv1UseDav1d,
   RelaxedAtomicBool, false
 )
 
 VARCACHE_PREF(
   "media.flac.enabled",
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -637,17 +637,21 @@ pref("media.cubeb.sandbox", true);
 pref("media.audioipc.pool_size", 2);
 // 64 * 4 kB stack per pool thread.
 pref("media.audioipc.stack_size", 262144);
 #else
 pref("media.cubeb.sandbox", false);
 #endif
 
 #ifdef MOZ_AV1
+#if defined(XP_WIN)
+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);
 
 // setSinkId expected to be unconditionally enabled in 63. Till then the
 // implementation will remain hidden behind this pref (Bug 1152401, Bug 934425).