Skip to content

Conversation

@GaryQian
Copy link
Contributor

@GaryQian GaryQian commented Jun 1, 2017

No description provided.

@GaryQian GaryQian requested a review from chinmaygarde June 1, 2017 23:58
@GaryQian GaryQian changed the title Add flags to pass '--enable-software-rendering' flag to engine Add flags to pass '--enable-software-rendering' flag to engine in run command Jun 2, 2017
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.');
Copy link
Contributor

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."

Copy link
Contributor Author

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',
Copy link
Contributor

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)
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

@GaryQian GaryQian merged commit a367dcb into flutter:master Jun 2, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants