-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add flags to pass '--enable-software-rendering' flag to engine in run command #10449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| negatable: false, | ||
| help: 'Enable rendering using the Skia software backend. This is useful\n' | ||
| 'when testing Flutter on emulators. By default, Flutter will\n' | ||
| 'attempt to either use OpenGL or Vulkan.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: suggest ending the last sentence with "and will fallback to software rendering when neither are available."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not yet the case, but I'll add it in a second!
| defaultsTo: false, | ||
| negatable: false, | ||
| help: 'Start in a paused mode and wait for a debugger to connect.'); | ||
| argParser.addFlag('enable-software-rendering', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these options shared with flutter drive command? If not, could you add it there too?
| cmd.addAll(<String>['--ez', 'trace-startup', 'true']); | ||
| if (route != null) | ||
| cmd.addAll(<String>['--es', 'route', route]); | ||
| if (enableSoftwareRendering || debuggingOptions.enableSoftwareRendering) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these two flags be reduced into one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!
No description provided.