| 30 | type labelForGlesCommands struct{} |
| 31 | |
| 32 | func (*labelForGlesCommands) GetCommandLabel(command api.Cmd, cmdId uint64) *api.Label { |
| 33 | label := &api.Label{} |
| 34 | commandName := command.CmdName() |
| 35 | var commandIndexName bytes.Buffer |
| 36 | fmt.Fprintf(&commandIndexName, "%s_%d", commandName, cmdId) |
| 37 | label.PushBack(commandIndexName.String(), int(cmdId)) |
| 38 | return label |
| 39 | } |
| 40 | |
| 41 | func (*labelForGlesCommands) GetSubCommandLabel(index api.SubCmdIdx, commandName string, cmdId uint64, subCommandName string) *api.Label { |
| 42 | // TODO(hevrard): understand and implement |