gpu/command_buffer/build_cmd_buffer_lib.py
def WriteGLES2TraceImplementation(self, func, f):
    """Writes the GLES2 Trace Implemention."""
    f.write("%s GLES2TraceImplementation::%s(%s) {\n" %
               (func.return_type, func.original_name,
                func.MakeTypedOriginalArgString("")))
    result_string = "return "
    if func.return_type == "void":
      result_string = ""
    f.write('  TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::%s");\n' %
               func.name)
    f.write("  %sgl_->%s(%s);\n" %
               (result_string, func.name, func.MakeOriginalArgString("")))
    f.write("}\n")
    f.write("\n")
Writes the GLES2 Trace Implemention.
Writes the GLES2 Trace Implemention.
Writes the GLES2 Trace Implemention .
def WriteGLES2TraceImplementation(self, func, f):
    f.write("%s GLES2TraceImplementation::%s(%s) {\n" %
               (func.return_type, func.original_name,
                func.MakeTypedOriginalArgString("")))
    result_string = "return "
    if func.return_type == "void":
      result_string = ""
    f.write('  TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::%s");\n' %
               func.name)
    f.write("  %sgl_->%s(%s);\n" %
               (result_string, func.name, func.MakeOriginalArgString("")))
    f.write("}\n")
    f.write("\n")
def WriteGLES2TraceImplementation ( self , func , f ) : f . write ( "%s GLES2TraceImplementation::%s(%s) {\n" % ( func . return_type , func . original_name , func . MakeTypedOriginalArgString ( "" ) ) ) result_string = "return " if func . return_type == "void" : result_string = "" f . write ( '  TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::%s");\n' % func . name ) f . write ( "  %sgl_->%s(%s);\n" % ( result_string , func . name , func . MakeOriginalArgString ( "" ) ) ) f . write ( "}\n" ) f . write ( "\n" )
Writes the GLES2 Trace Implemention.
Writes the GLES2 Trace Implemention .
"""Writes the GLES2 Trace Implemention."""
self
func
f