зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1598477 - Enable Webrender for Pixel 3 and Pixel 3 XL. r=jnicol
* Enable Pixel 3 and Pixel 3 XL on nightly only. Differential Revision: https://phabricator.services.mozilla.com/D54796 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
563fdba9f3
Коммит
5526ac12fc
|
@ -562,9 +562,10 @@ nsresult GfxInfo::GetFeatureStatusImpl(
|
|||
|
||||
if (aFeature == FEATURE_WEBRENDER) {
|
||||
NS_LossyConvertUTF16toASCII model(mModel);
|
||||
bool isBlocked =
|
||||
!model.Equals("Pixel 2", nsCaseInsensitiveCStringComparator()) &&
|
||||
!model.Equals("Pixel 2 XL", nsCaseInsensitiveCStringComparator());
|
||||
bool isBlocked = model.Find("Pixel 2", /*ignoreCase*/ true) <
|
||||
0 && // Find substring to include all Pixel 2 models
|
||||
model.Find("Pixel 3", /*ignoreCase*/ true) <
|
||||
0; // Find substring to include all Pixel 3 models
|
||||
|
||||
if (isBlocked) {
|
||||
*aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче