Bug 889433 - Blocklist h264 playback on Sony devices running Android 4.2 r=doublec
authorEdwin Flores <eflores@mozilla.com>
Tue, 23 Jul 2013 06:34:09 +1200
changeset 151762 dea0e4dd0ac62235fa6197a16fe665b74b8e11d2
parent 151761 fc748c94f58fca235e093f1d27051d2faefd5278
child 151763 b6e1a6d7f62266cfa0768a5d0c9350010c335437
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdoublec
bugs889433
milestone25.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 889433 - Blocklist h264 playback on Sony devices running Android 4.2 r=doublec
widget/android/GfxInfo.cpp
--- a/widget/android/GfxInfo.cpp
+++ b/widget/android/GfxInfo.cpp
@@ -480,16 +480,24 @@ GfxInfo::GetFeatureStatusImpl(int32_t aF
           cModel.Find("GT-P5113", true) != -1 ||
           cManufacturer.Find("Sony", true) != -1;
 
         if (isBlocklisted) {
           *aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE;
           return NS_OK;
         }
       }
+      else if (CompareVersions(mOSVersion.get(), "4.3.0") < 0)
+      {
+        // Blocklist all Sony devices
+        if (cManufacturer.Find("Sony", true) != -1) {
+          *aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE;
+          return NS_OK;
+        }
+      }
     }
   }
 
   return GfxInfoBase::GetFeatureStatusImpl(aFeature, aStatus, aSuggestedDriverVersion, aDriverInfo, &os);
 }
 
 #ifdef DEBUG