gpu/command_buffer/build_cmd_buffer_lib.py
def WriteCmdFlag(self, f):
    """Writes the cmd cmd_flags constant."""
    # By default trace only at the highest level 3.
    trace_level = int(self.GetInfo('trace_level', default = 3))
    if trace_level not in xrange(0, 4):
      raise KeyError("Unhandled trace_level: %d" % trace_level)

    cmd_flags = ('CMD_FLAG_SET_TRACE_LEVEL(%d)' % trace_level)
    f.write("  static const uint8_t cmd_flags = %s;\n" % cmd_flags)
Writes the cmd cmd_flags constant.
Writes the cmd cmd_flags constant.
Writes the cmd cmd_flags constant .
def WriteCmdFlag(self, f):
    trace_level = int(self.GetInfo('trace_level', default = 3))
    if trace_level not in xrange(0, 4):
      raise KeyError("Unhandled trace_level: %d" % trace_level)
    cmd_flags = ('CMD_FLAG_SET_TRACE_LEVEL(%d)' % trace_level)
    f.write("  static const uint8_t cmd_flags = %s;\n" % cmd_flags)
def WriteCmdFlag ( self , f ) : trace_level = int ( self . GetInfo ( 'trace_level' , default = 3 ) ) if trace_level not in xrange ( 0 , 4 ) : raise KeyError ( "Unhandled trace_level: %d" % trace_level ) cmd_flags = ( 'CMD_FLAG_SET_TRACE_LEVEL(%d)' % trace_level ) f . write ( "  static const uint8_t cmd_flags = %s;\n" % cmd_flags )
Writes the cmd cmd_flags constant.
Writes the cmd cmd_flags constant .
"""Writes the cmd cmd_flags constant.""" # By default trace only at the highest level 3.
self
f