Bug 823523 - Part 4 - Whitelist Samsung Honeycomb devices for Stagefright decoding - r=bjacob

--HG--
extra : rebase_source : 4ec9c95e5ad14cc67e0519ed56fe50aa37254955
This commit is contained in:
Chris Double 2013-02-18 13:36:17 +13:00
Родитель c035839af3
Коммит c257a2c5cd
1 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -383,6 +383,19 @@ GfxInfo::GetFeatureStatusImpl(int32_t aFeature,
return NS_OK;
}
}
else if (CompareVersions(mOSVersion.get(), "3.0.0") >= 0 &&
CompareVersions(mOSVersion.get(), "4.0.0") < 0)
{
// Honeycomb Samsung devices are whitelisted.
// All other Honeycomb devices are blacklisted.
bool isWhitelisted =
cManufacturer.Equals("samsung", nsCaseInsensitiveCStringComparator());
if (!isWhitelisted) {
*aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE;
return NS_OK;
}
}
else if (CompareVersions(mOSVersion.get(), "4.0.0") < 0)
{
*aStatus = nsIGfxInfo::FEATURE_BLOCKED_OS_VERSION;