[flutter_tools] remove k toggle for canvaskit from web runner (#66273)

The k toggle allows switching between canvaskit and html backend at runtime. unfortunately this causes hot restart to break, since the dart_sdk modules stores state at runtime. The recommendation will be to use cavaskit via dart-defines.
This commit is contained in:
Jonah Williams
2020-09-21 15:33:32 -07:00
committed by GitHub
parent 4c7f746374
commit 511367aa5a
5 changed files with 0 additions and 31 deletions

View File

@@ -799,9 +799,6 @@ class _ResidentWebRunner extends ResidentWebRunner {
return 0;
}
@override
bool get supportsCanvasKit => supportsServiceProtocol;
@override
Future<bool> toggleCanvaskit() async {
final WebDevFS webDevFS = device.devFS as WebDevFS;

View File

@@ -795,7 +795,6 @@ abstract class ResidentRunner {
bool get isRunningProfile => debuggingOptions.buildInfo.isProfile;
bool get isRunningRelease => debuggingOptions.buildInfo.isRelease;
bool get supportsServiceProtocol => isRunningDebug || isRunningProfile;
bool get supportsCanvasKit => false;
bool get supportsWriteSkSL => supportsServiceProtocol;
bool get trackWidgetCreation => debuggingOptions.buildInfo.trackWidgetCreation;
@@ -1319,9 +1318,6 @@ abstract class ResidentRunner {
commandHelp.S.print();
commandHelp.U.print();
}
if (supportsCanvasKit){
commandHelp.k.print();
}
if (supportsWriteSkSL) {
commandHelp.M.print();
}
@@ -1476,13 +1472,6 @@ class TerminalHandler {
return true;
}
return false;
case 'k':
if (residentRunner.supportsCanvasKit) {
final bool result = await residentRunner.toggleCanvaskit();
globals.printStatus('${result ? 'Enabled' : 'Disabled'} CanvasKit');
return true;
}
return false;
case 'L':
if (residentRunner.supportsServiceProtocol) {
await residentRunner.debugDumpLayerTree();