Bug 1721631 - Remove Android WebRender experiment hack. r=jnicol,geckoview-reviewers,agi

We're not running this experiment anymore.

Differential Revision: https://phabricator.services.mozilla.com/D120487
This commit is contained in:
Jeff Muizelaar 2021-07-21 21:22:43 +00:00
Родитель 930974921e
Коммит 3272c0e6ca
1 изменённых файлов: 1 добавлений и 14 удалений

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

@ -30,7 +30,6 @@ import androidx.annotation.AnyThread;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.UiThread;
import androidx.collection.ArrayMap;
import android.util.Log;
import org.mozilla.gecko.EventDispatcher;
@ -50,7 +49,6 @@ import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public final class GeckoRuntime implements Parcelable {
private static final String LOGTAG = "GeckoRuntime";
@ -358,18 +356,7 @@ public final class GeckoRuntime implements Parcelable {
}
info.extras = settings.getExtras();
info.flags = flags;
// Bug 1605454: Temporary change for Fenix experiment that disables webrender
// Once the experiment ends or experimenter gets implemented in Gecko, this should be removed
// and replaced by :
// info.prefs = settings.getPrefsMap();
final Map<String, Object> prefMap = new ArrayMap<String, Object>();
prefMap.putAll(settings.getPrefsMap());
if (info.extras.getInt("forcedisablewebrender") == 1) {
prefMap.put("gfx.webrender.force-disabled", true);
}
info.prefs = prefMap;
// End of Bug 1605454 hack
info.prefs = settings.getPrefsMap();
// Older versions have problems with SnakeYaml
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {