Bug 1403412 - disable VP9 estimizer on Mac; r=jya
authorKaku Kuo <kaku@mozilla.com>
Thu, 28 Sep 2017 00:17:29 +0800
changeset 383365 6a46ed72cd5f1895cd08eaad0a6da7b99458a006
parent 383364 6010c57965174945650d8aa4e51c067c23c594a2
child 383366 6cd5181ec29df2d0095316f8b553bb3382c93f61
push id32590
push userarchaeopteryx@coole-files.de
push dateThu, 28 Sep 2017 09:42:39 +0000
treeherdermozilla-central@82c2eecf82ba [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1403412
milestone58.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 1403412 - disable VP9 estimizer on Mac; r=jya MozReview-Commit-ID: 8RTe7lVSRwl
dom/media/Benchmark.cpp
--- a/dom/media/Benchmark.cpp
+++ b/dom/media/Benchmark.cpp
@@ -39,17 +39,18 @@ const char* VP9Benchmark::sBenchmarkFpsV
 bool VP9Benchmark::sHasRunTest = false;
 
 // static
 bool
 VP9Benchmark::IsVP9DecodeFast()
 {
   MOZ_ASSERT(NS_IsMainThread());
 
-#ifdef MOZ_WIDGET_ANDROID
+  // Disable VP9 estimizer on Mac, see bug 1400787.
+#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_APPLEMEDIA)
   return false;
 #else
   bool hasPref = Preferences::HasUserValue(sBenchmarkFpsPref);
   uint32_t hadRecentUpdate = Preferences::GetUint(sBenchmarkFpsVersionCheck, 0U);
 
   if (!sHasRunTest && (!hasPref || hadRecentUpdate != sBenchmarkVersionID)) {
     sHasRunTest = true;