parameters: (self, func, file)
docstring: Overrriden from TypeHandler.
docstring_summary: Overrriden from TypeHandler.
docstring_tokens: Overrriden from TypeHandler .
function: def WriteGLES2ImplementationHeader(self, func, file):
      """Overrriden from TypeHandler."""
      impl_decl = func.GetInfo('impl_decl')
      if impl_decl == None or impl_decl == True:
        args = {
            'return_type': func.return_type,
            'name': func.original_name,
            'typed_args': func.MakeTypedOriginalArgString(""),
            'args': func.MakeOriginalArgString(""),
            'resource_type': func.GetInfo('resource_type').lower(),
            'count_name': func.GetOriginalArgs()[0].name,
          }
        file.Write("%(return_type)s %(name)s(%(typed_args)s) {\n" % args)
        file.Write("  GPU_CLIENT_SINGLE_THREAD_CHECK();\n")
        func.WriteDestinationInitalizationValidation(file)
        self.WriteClientGLCallLog(func, file)
        file.Write("""  GPU_CLIENT_LOG_CODE_BLOCK({
      for (GLsizei i = 0; i < n; ++i) {
        GPU_CLIENT_LOG("  " << i << ": " << %s[i]);
      }
    });
  """ % func.GetOriginalArgs()[1].name)
        file.Write("""  GPU_CLIENT_DCHECK_CODE_BLOCK({
      for (GLsizei i = 0; i < n; ++i) {
        GPU_DCHECK(%s[i] != 0);
      }
    });
  """ % func.GetOriginalArgs()[1].name)
        for arg in func.GetOriginalArgs():
          arg.WriteClientSideValidationCode(file, func)
        code = """  %(name)sHelper(%(args)s);
  }
  
  """
        file.Write(code % args)
function_tokens: def WriteGLES2ImplementationHeader ( self , func , file ) : impl_decl = func . GetInfo ( 'impl_decl' ) if impl_decl == None or impl_decl == True : args = { 'return_type' : func . return_type , 'name' : func . original_name , 'typed_args' : func . MakeTypedOriginalArgString ( "" ) , 'args' : func . MakeOriginalArgString ( "" ) , 'resource_type' : func . GetInfo ( 'resource_type' ) . lower ( ) , 'count_name' : func . GetOriginalArgs ( ) [ 0 ] . name , } file . Write ( "%(return_type)s %(name)s(%(typed_args)s) {\n" % args ) file . Write ( "  GPU_CLIENT_SINGLE_THREAD_CHECK();\n" ) func . WriteDestinationInitalizationValidation ( file ) self . WriteClientGLCallLog ( func , file ) file . Write ( """  GPU_CLIENT_LOG_CODE_BLOCK({
      for (GLsizei i = 0; i < n; ++i) {
        GPU_CLIENT_LOG("  " << i << ": " << %s[i]);
      }
    });
  """ % func . GetOriginalArgs ( ) [ 1 ] . name ) file . Write ( """  GPU_CLIENT_DCHECK_CODE_BLOCK({
      for (GLsizei i = 0; i < n; ++i) {
        GPU_DCHECK(%s[i] != 0);
      }
    });
  """ % func . GetOriginalArgs ( ) [ 1 ] . name ) for arg in func . GetOriginalArgs ( ) : arg . WriteClientSideValidationCode ( file , func ) code = """  %(name)sHelper(%(args)s);
  }
  
  """ file . Write ( code % args )