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

Returns SubCommandRange for CmdIDGroup under SubCmdRoot. #1236

Merged
merged 2 commits into from
Oct 21, 2017

Conversation

Qining
Copy link
Contributor

@Qining Qining commented Oct 20, 2017

Should be a quick fix for #1214.

The Commands field will be a SubCommandRange of [371, 0, 0, 0]-[371, 0, 0, 6], not a CommandRange of [0]-[6]

Copy link
Contributor

@ben-clayton ben-clayton left a comment

Choose a reason for hiding this comment

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

Have you tested this for GVR apps? I'm not sure if this will impact GVR commands that contain child GL commands.

NumCommands: item.DeepCount(func(g api.CmdIDGroup) bool { return true /* TODO: Subcommands */ }),
}, nil
if len(absId) == 0 {
// Not a CmdIDGroup under SubCmdRoot, dose not contain Subcommands
Copy link
Contributor

Choose a reason for hiding this comment

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

s/dose/does

Group: item.Name,
NumCommands: item.DeepCount(func(g api.CmdIDGroup) bool { return true /* TODO: Subcommands */ }),
}, nil
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

@Qining
Copy link
Contributor Author

Qining commented Oct 21, 2017

@ben-clayton Tested with the GVR sample trace you gave me before. Didn't notice any differences during replay.

@Qining Qining merged commit 6c16bc9 into google:master Oct 21, 2017
@Qining Qining deleted the renderpasss-cmd-group-id branch October 21, 2017 18:51
@ben-clayton
Copy link
Contributor

Great, thanks for checking!

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.

2 participants