Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 9150022: Revert r118525 / Re-land r118240 - the build failure was a flake. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_c_lib.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """code generator for GLES2 command buffers.""" 6 """code generator for GLES2 command buffers."""
7 7
8 import os 8 import os
9 import os.path 9 import os.path
10 import sys 10 import sys
11 import re 11 import re
12 from optparse import OptionParser 12 from optparse import OptionParser
13 13
14 _SIZE_OF_UINT32 = 4 14 _SIZE_OF_UINT32 = 4
15 _SIZE_OF_COMMAND_HEADER = 4 15 _SIZE_OF_COMMAND_HEADER = 4
16 _FIRST_SPECIFIC_COMMAND_ID = 256 16 _FIRST_SPECIFIC_COMMAND_ID = 256
17 17
18 _LICENSE = """// Copyright (c) 2011 The Chromium Authors. All rights reserved. 18 _LICENSE = """// Copyright (c) 2012 The Chromium Authors. All rights reserved.
19 // Use of this source code is governed by a BSD-style license that can be 19 // Use of this source code is governed by a BSD-style license that can be
20 // found in the LICENSE file. 20 // found in the LICENSE file.
21 21
22 """ 22 """
23 23
24 _DO_NOT_EDIT_WARNING = """// This file is auto-generated from 24 _DO_NOT_EDIT_WARNING = """// This file is auto-generated from
25 // gpu/command_buffer/build_gles2_cmd_buffer.py 25 // gpu/command_buffer/build_gles2_cmd_buffer.py
26 // DO NOT EDIT! 26 // DO NOT EDIT!
27 27
28 """ 28 """
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 GL_APICALL void GL_APIENTRY glVertexAttrib2f (GLuint indx, GLfloat x, GL float y); 194 GL_APICALL void GL_APIENTRY glVertexAttrib2f (GLuint indx, GLfloat x, GL float y);
195 GL_APICALL void GL_APIENTRY glVertexAttrib2fv (GLuint indx, const GLfloa t* values); 195 GL_APICALL void GL_APIENTRY glVertexAttrib2fv (GLuint indx, const GLfloa t* values);
196 GL_APICALL void GL_APIENTRY glVertexAttrib3f (GLuint indx, GLfloat x, GL float y, GLfloat z); 196 GL_APICALL void GL_APIENTRY glVertexAttrib3f (GLuint indx, GLfloat x, GL float y, GLfloat z);
197 GL_APICALL void GL_APIENTRY glVertexAttrib3fv (GLuint indx, const GLfloa t* values); 197 GL_APICALL void GL_APIENTRY glVertexAttrib3fv (GLuint indx, const GLfloa t* values);
198 GL_APICALL void GL_APIENTRY glVertexAttrib4f (GLuint indx, GLfloat x, GL float y, GLfloat z, GLfloat w); 198 GL_APICALL void GL_APIENTRY glVertexAttrib4f (GLuint indx, GLfloat x, GL float y, GLfloat z, GLfloat w);
199 GL_APICALL void GL_APIENTRY glVertexAttrib4fv (GLuint indx, const GLfloa t* values); 199 GL_APICALL void GL_APIENTRY glVertexAttrib4fv (GLuint indx, const GLfloa t* values);
200 GL_APICALL void GL_APIENTRY glVertexAttribPointer (GLuint indx, GLintVer texAttribSize size, GLenumVertexAttribType type, GLboolean normalized, GLsizei s tride, const void* ptr); 200 GL_APICALL void GL_APIENTRY glVertexAttribPointer (GLuint indx, GLintVer texAttribSize size, GLenumVertexAttribType type, GLboolean normalized, GLsizei s tride, const void* ptr);
201 GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); 201 GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
202 GL_APICALL void GL_APIENTRY glBlitFramebufferEXT (GLint srcX0, GLint src Y0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1 , GLbitfield mask, GLenumBlitFilter filter); 202 GL_APICALL void GL_APIENTRY glBlitFramebufferEXT (GLint srcX0, GLint src Y0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1 , GLbitfield mask, GLenumBlitFilter filter);
203 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenumR enderBufferTarget target, GLsizei samples, GLenumRenderBufferFormat internalform at, GLsizei width, GLsizei height); 203 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenumR enderBufferTarget target, GLsizei samples, GLenumRenderBufferFormat internalform at, GLsizei width, GLsizei height);
204 GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenumTextureTarget targe t, GLsizei levels, GLintTextureInternalFormatStorage internalFormat, GLsizei wid th, GLsizei height); 204 GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenumTextureTarget targe t, GLsizei levels, GLenumTextureInternalFormatStorage internalFormat, GLsizei wi dth, GLsizei height);
205 // Non-GL commands. 205 // Non-GL commands.
206 GL_APICALL void GL_APIENTRY glSwapBuffers (void); 206 GL_APICALL void GL_APIENTRY glSwapBuffers (void);
207 GL_APICALL GLuint GL_APIENTRY glGetMaxValueInBufferCHROMIUM (GLidBuffer bu ffer_id, GLsizei count, GLenumGetMaxIndexType type, GLuint offset); 207 GL_APICALL GLuint GL_APIENTRY glGetMaxValueInBufferCHROMIUM (GLidBuffer bu ffer_id, GLsizei count, GLenumGetMaxIndexType type, GLuint offset);
208 GL_APICALL void GL_APIENTRY glGenSharedIdsCHROMIUM (GLuint namespace_id, GLuint id_offset, GLsizeiNotNegative n, GLuint* ids); 208 GL_APICALL void GL_APIENTRY glGenSharedIdsCHROMIUM (GLuint namespace_id, GLuint id_offset, GLsizeiNotNegative n, GLuint* ids);
209 GL_APICALL void GL_APIENTRY glDeleteSharedIdsCHROMIUM (GLuint namespace_ id, GLsizeiNotNegative n, const GLuint* ids); 209 GL_APICALL void GL_APIENTRY glDeleteSharedIdsCHROMIUM (GLuint namespace_ id, GLsizeiNotNegative n, const GLuint* ids);
210 GL_APICALL void GL_APIENTRY glRegisterSharedIdsCHROMIUM (GLuint namespac e_id, GLsizeiNotNegative n, const GLuint* ids); 210 GL_APICALL void GL_APIENTRY glRegisterSharedIdsCHROMIUM (GLuint namespac e_id, GLsizeiNotNegative n, const GLuint* ids);
211 GL_APICALL GLboolean GL_APIENTRY glEnableFeatureCHROMIUM (const char* feature ); 211 GL_APICALL GLboolean GL_APIENTRY glEnableFeatureCHROMIUM (const char* feature );
212 GL_APICALL void* GL_APIENTRY glMapBufferSubDataCHROMIUM (GLuint target, G LintptrNotNegative offset, GLsizeiptr size, GLenum access); 212 GL_APICALL void* GL_APIENTRY glMapBufferSubDataCHROMIUM (GLuint target, G LintptrNotNegative offset, GLsizeiptr size, GLenum access);
213 GL_APICALL void GL_APIENTRY glUnmapBufferSubDataCHROMIUM (const void* me m); 213 GL_APICALL void GL_APIENTRY glUnmapBufferSubDataCHROMIUM (const void* me m);
214 GL_APICALL void* GL_APIENTRY glMapTexSubImage2DCHROMIUM (GLenum target, G Lint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLenum access); 214 GL_APICALL void* GL_APIENTRY glMapTexSubImage2DCHROMIUM (GLenum target, G Lint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLenum access);
(...skipping 5800 matching lines...) Expand 10 before | Expand all | Expand 10 after
6015 else: 6015 else:
6016 func.WriteServiceUnitTest(file) 6016 func.WriteServiceUnitTest(file)
6017 6017
6018 file.Close() 6018 file.Close()
6019 6019
6020 6020
6021 def WriteGLES2CLibImplementation(self, filename): 6021 def WriteGLES2CLibImplementation(self, filename):
6022 """Writes the GLES2 c lib implementation.""" 6022 """Writes the GLES2 c lib implementation."""
6023 file = CHeaderWriter( 6023 file = CHeaderWriter(
6024 filename, 6024 filename,
6025 "// These functions emluate GLES2 over command buffers.\n") 6025 "// These functions emulate GLES2 over command buffers.\n")
6026 6026
6027 for func in self.original_functions: 6027 for func in self.original_functions:
6028 func.WriteGLES2CLibImplementation(file) 6028 func.WriteGLES2CLibImplementation(file)
6029 file.Write("\n") 6029 file.Write("\n")
6030 6030
6031 file.Close() 6031 file.Close()
6032 6032
6033 def WriteGLES2ImplementationHeader(self, filename): 6033 def WriteGLES2ImplementationHeader(self, filename):
6034 """Writes the GLES2 helper header.""" 6034 """Writes the GLES2 helper header."""
6035 file = CHeaderWriter( 6035 file = CHeaderWriter(
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
6412 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") 6412 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h")
6413 6413
6414 if gen.errors > 0: 6414 if gen.errors > 0:
6415 print "%d errors" % gen.errors 6415 print "%d errors" % gen.errors
6416 return 1 6416 return 1
6417 return 0 6417 return 0
6418 6418
6419 6419
6420 if __name__ == '__main__': 6420 if __name__ == '__main__':
6421 sys.exit(main(sys.argv[1:])) 6421 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_c_lib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698