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:
Kris Taeleman 2019-11-27 11:20:28 +00:00
parent 563fdba9f3
commit 5526ac12fc

View File

@ -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;