зеркало из https://github.com/mozilla/gecko-dev.git
Bug 823523 - Part 4 - Whitelist Samsung Honeycomb devices for Stagefright decoding - r=bjacob
--HG-- extra : rebase_source : 4ec9c95e5ad14cc67e0519ed56fe50aa37254955
This commit is contained in:
Родитель
c035839af3
Коммит
c257a2c5cd
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче