[web] Reland - Switch web-render option default to auto (flutter/engine#23313)

This commit is contained in:
Ferhat
2020-12-28 11:10:38 -08:00
committed by GitHub
parent 8ae0d46b20
commit f6effe1f31
2 changed files with 3 additions and 1 deletions

View File

@@ -619,6 +619,8 @@ class TestCommand extends Command<bool> with ArgUtils {
'--enable-experiment=non-nullable',
'--no-sound-null-safety',
if (input.forCanvasKit) '-DFLUTTER_WEB_USE_SKIA=true',
if (!input.forCanvasKit) '-DFLUTTER_WEB_AUTO_DETECT=false',
if (!input.forCanvasKit) '-DFLUTTER_WEB_USE_SKIA=false',
'-O2',
'-o',
targetFileName, // target path.

View File

@@ -31,7 +31,7 @@ bool _detectRenderer() {
/// Using flutter tools option "--web-render=auto" would set the value to true.
/// Otherwise, it would be false.
const bool _autoDetect =
bool.fromEnvironment('FLUTTER_WEB_AUTO_DETECT', defaultValue: false);
bool.fromEnvironment('FLUTTER_WEB_AUTO_DETECT', defaultValue: true);
/// Enable the Skia-based rendering backend.
///