Add flags to pass '--enable-software-rendering' flag to engine in run command (#10449)

This commit is contained in:
Gary Qian
2017-06-02 09:44:36 -07:00
committed by GitHub
parent e3bab988ce
commit a367dcb02c
4 changed files with 16 additions and 0 deletions

View File

@@ -397,6 +397,8 @@ class AndroidDevice extends Device {
cmd.addAll(<String>['--ez', 'trace-startup', 'true']);
if (route != null)
cmd.addAll(<String>['--es', 'route', route]);
if (debuggingOptions.enableSoftwareRendering)
cmd.addAll(<String>['--ez', 'enable-software-rendering', 'true']);
if (debuggingOptions.debuggingEnabled) {
if (debuggingOptions.buildMode == BuildMode.debug)
cmd.addAll(<String>['--ez', 'enable-checked-mode', 'true']);