gpu/command_buffer/build_cmd_buffer_lib.py
def WriteClientContextStateHeader(self, filename):
    """Writes the client context state header."""
    comment = "// It is included by client_context_state.h\n"
    with CHeaderWriter(filename, self.year, comment) as f:
      f.write("struct EnableFlags {\n")
      f.write("  EnableFlags();\n")
      for capability in self.capability_flags:
        if 'extension_flag' in capability:
          continue
        f.write("  bool %s;\n" % capability['name'])
      f.write("};\n\n")
    self.generated_cpp_filenames.append(filename)
Writes the client context state header.
Writes the client context state header.
Writes the client context state header .
def WriteClientContextStateHeader(self, filename):
    comment = "// It is included by client_context_state.h\n"
    with CHeaderWriter(filename, self.year, comment) as f:
      f.write("struct EnableFlags {\n")
      f.write("  EnableFlags();\n")
      for capability in self.capability_flags:
        if 'extension_flag' in capability:
          continue
        f.write("  bool %s;\n" % capability['name'])
      f.write("};\n\n")
    self.generated_cpp_filenames.append(filename)
def WriteClientContextStateHeader ( self , filename ) : comment = "// It is included by client_context_state.h\n" with CHeaderWriter ( filename , self . year , comment ) as f : f . write ( "struct EnableFlags {\n" ) f . write ( "  EnableFlags();\n" ) for capability in self . capability_flags : if 'extension_flag' in capability : continue f . write ( "  bool %s;\n" % capability [ 'name' ] ) f . write ( "};\n\n" ) self . generated_cpp_filenames . append ( filename )
Writes the client context state header.
Writes the client context state header .
"""Writes the client context state header."""
self
filename