Bug 823253 - Part 3 - Whitelist Samsung Gingerbread devices for Stagefright decoding - r=bjacob

--HG--
extra : rebase_source : 2fcb3abcac2de4d03cb0c4ac8e98d3052dd5586f
This commit is contained in:
Chris Double 2013-02-18 13:36:09 +13:00
parent 43b16972b6
commit 87263482c3

View File

@ -372,9 +372,11 @@ GfxInfo::GetFeatureStatusImpl(int32_t aFeature,
CompareVersions(mOSVersion.get(), "2.4.0") < 0)
{
// Gingerbread HTC devices are whitelisted.
// All other Gingerbread devices are blacklisted.
// Gingerbread Samsung devices are whitelisted.
// All other Gingerbread devices are blacklisted.
bool isWhitelisted =
cManufacturer.Equals("htc", nsCaseInsensitiveCStringComparator());
cManufacturer.Equals("htc", nsCaseInsensitiveCStringComparator()) ||
cManufacturer.Equals("samsung", nsCaseInsensitiveCStringComparator());
if (!isWhitelisted) {
*aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE;