Skip to content
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

Robot: Add API option to subject upload. #1130

Merged
merged 1 commit into from
Sep 26, 2017

Conversation

baldwinn860
Copy link
Contributor

Allows user to specify the API of the uploaded subject as either gles
(the default) or vulkan. Then stores it in the subject's hints to be
used when tracing with gapit.

@@ -48,6 +48,7 @@ func init() {

type subjectUploadVerb struct {
RobotOptions
API string `help:"the api to capture, can be either gles or vulkan (default:gles)"`
Copy link
Contributor

Choose a reason for hiding this comment

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

The flag system does support enums.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was following the pattern that gapit uses for accepting the API seen in cmd/gapit/flags.go. Should I change that instance as well to be an enum?

Copy link
Contributor

Choose a reason for hiding this comment

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

You can do, but you don't have to. That flag might become a list, in which case keeping-as-is is fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok fixed.

Allows user to specify the API of the uploaded subject as either gles
(the default) or vulkan. Then stores it in the subject's hints to be
used when tracing with gapit.
@baldwinn860
Copy link
Contributor Author

Commenting to get cla/google to re-run

@baldwinn860 baldwinn860 merged commit 0666827 into google:master Sep 26, 2017
@baldwinn860 baldwinn860 deleted the add_subject_api branch September 26, 2017 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants