gpu/command_buffer/build_cmd_buffer_lib.py
def WriteHandlerImplementation(self, func, f):
    """Writes the handler implementation for this command."""
    args = []
    for arg in func.GetOriginalArgs():
      if arg.name.endswith("size") and arg.type == "GLsizei":
        args.append("num_%s" % func.GetLastOriginalArg().name)
      elif arg.name == "length":
        args.append("nullptr")
      else:
        args.append(arg.name)

    if func.GetInfo('type') == 'GETn' and func.name != 'GetSynciv':
      args.append('num_values')

    f.write("  %s(%s);\n" %
               (func.GetGLFunctionName(), ", ".join(args)))
Writes the handler implementation for this command.
Writes the handler implementation for this command.
Writes the handler implementation for this command .
def WriteHandlerImplementation(self, func, f):
    args = []
    for arg in func.GetOriginalArgs():
      if arg.name.endswith("size") and arg.type == "GLsizei":
        args.append("num_%s" % func.GetLastOriginalArg().name)
      elif arg.name == "length":
        args.append("nullptr")
      else:
        args.append(arg.name)
    if func.GetInfo('type') == 'GETn' and func.name != 'GetSynciv':
      args.append('num_values')
    f.write("  %s(%s);\n" %
               (func.GetGLFunctionName(), ", ".join(args)))
def WriteHandlerImplementation ( self , func , f ) : args = [ ] for arg in func . GetOriginalArgs ( ) : if arg . name . endswith ( "size" ) and arg . type == "GLsizei" : args . append ( "num_%s" % func . GetLastOriginalArg ( ) . name ) elif arg . name == "length" : args . append ( "nullptr" ) else : args . append ( arg . name ) if func . GetInfo ( 'type' ) == 'GETn' and func . name != 'GetSynciv' : args . append ( 'num_values' ) f . write ( "  %s(%s);\n" % ( func . GetGLFunctionName ( ) , ", " . join ( args ) ) )
Writes the handler implementation for this command.
Writes the handler implementation for this command .
"""Writes the handler implementation for this command."""
self
func
f