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

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

Issue 7623001: Rename and document glCommandBufferEnableCHROMIUM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix stuff Created 9 years, 4 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 | « gpu/GLES2/gles2_command_buffer.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('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/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """code generator for GLES2 command buffers.""" 7 """code generator for GLES2 command buffers."""
8 8
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 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 glVertexAttribPointer (GLuint indx, GLintVer texAttribSize size, GLenumVertexAttribType type, GLboolean normalized, GLsizei s tride, const void* ptr);
202 GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); 202 GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
203 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 glBlitFramebufferEXT (GLint srcX0, GLint src Y0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1 , GLbitfield mask, GLenumBlitFilter filter);
204 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenumR enderBufferTarget target, GLsizei samples, GLenumRenderBufferFormat internalform at, GLsizei width, GLsizei height); 204 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenumR enderBufferTarget target, GLsizei samples, GLenumRenderBufferFormat internalform at, GLsizei width, 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 glCommandBufferEnableCHROMIUM (const char* f eature); 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);
215 GL_APICALL void GL_APIENTRY glUnmapTexSubImage2DCHROMIUM (const void* me m); 215 GL_APICALL void GL_APIENTRY glUnmapTexSubImage2DCHROMIUM (const void* me m);
216 GL_APICALL void GL_APIENTRY glResizeCHROMIUM (GLuint width, GLuint heigh t); 216 GL_APICALL void GL_APIENTRY glResizeCHROMIUM (GLuint width, GLuint heigh t);
217 GL_APICALL const GLchar* GL_APIENTRY glGetRequestableExtensionsCHROMIUM (void); 217 GL_APICALL const GLchar* GL_APIENTRY glGetRequestableExtensionsCHROMIUM (void);
218 GL_APICALL void GL_APIENTRY glRequestExtensionCHROMIUM (const char* exte nsion); 218 GL_APICALL void GL_APIENTRY glRequestExtensionCHROMIUM (const char* exte nsion);
219 GL_APICALL void GL_APIENTRY glRateLimitOffscreenContextCHROMIUM (void); 219 GL_APICALL void GL_APIENTRY glRateLimitOffscreenContextCHROMIUM (void);
220 GL_APICALL void GL_APIENTRY glSetSurfaceCHROMIUM (GLint surface_id); 220 GL_APICALL void GL_APIENTRY glSetSurfaceCHROMIUM (GLint surface_id);
221 GL_APICALL void GL_APIENTRY glGetMultipleIntegervCHROMIUM (const GLenum* pnames, GLuint count, GLint* results, GLsizeiptr size); 221 GL_APICALL void GL_APIENTRY glGetMultipleIntegervCHROMIUM (const GLenum* pnames, GLuint count, GLint* results, GLsizeiptr size);
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 'BindAttribLocationBucket': 432, 410 'BindAttribLocationBucket': 432,
411 'GetUniformLocationBucket': 433, 411 'GetUniformLocationBucket': 433,
412 'GetAttribLocationBucket': 434, 412 'GetAttribLocationBucket': 434,
413 'ShaderSourceBucket': 435, 413 'ShaderSourceBucket': 435,
414 'ShaderBinary': 436, 414 'ShaderBinary': 436,
415 'ReleaseShaderCompiler': 437, 415 'ReleaseShaderCompiler': 437,
416 'GetMaxValueInBufferCHROMIUM': 438, 416 'GetMaxValueInBufferCHROMIUM': 438,
417 'GenSharedIdsCHROMIUM': 439, 417 'GenSharedIdsCHROMIUM': 439,
418 'DeleteSharedIdsCHROMIUM': 440, 418 'DeleteSharedIdsCHROMIUM': 440,
419 'RegisterSharedIdsCHROMIUM': 441, 419 'RegisterSharedIdsCHROMIUM': 441,
420 'CommandBufferEnableCHROMIUM': 442, 420 'EnableFeatureCHROMIUM': 442,
421 'CompressedTexImage2DBucket': 443, 421 'CompressedTexImage2DBucket': 443,
422 'CompressedTexSubImage2DBucket': 444, 422 'CompressedTexSubImage2DBucket': 444,
423 'RenderbufferStorageMultisampleEXT': 445, 423 'RenderbufferStorageMultisampleEXT': 445,
424 'BlitFramebufferEXT': 446, 424 'BlitFramebufferEXT': 446,
425 'Placeholder447CHROMIUM': 447, 425 'Placeholder447CHROMIUM': 447,
426 'ResizeCHROMIUM': 448, 426 'ResizeCHROMIUM': 448,
427 'GetRequestableExtensionsCHROMIUM': 449, 427 'GetRequestableExtensionsCHROMIUM': 449,
428 'RequestExtensionCHROMIUM': 450, 428 'RequestExtensionCHROMIUM': 450,
429 'Placeholder451CHROMIUM': 451, 429 'Placeholder451CHROMIUM': 451,
430 'Placeholder452CHROMIUM': 452, 430 'Placeholder452CHROMIUM': 452,
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 'result': ['GLenum'], 1162 'result': ['GLenum'],
1163 }, 1163 },
1164 'Clear': {'decoder_func': 'DoClear'}, 1164 'Clear': {'decoder_func': 'DoClear'},
1165 'ClearColor': {'decoder_func': 'DoClearColor'}, 1165 'ClearColor': {'decoder_func': 'DoClearColor'},
1166 'ClearDepthf': { 1166 'ClearDepthf': {
1167 'decoder_func': 'DoClearDepthf', 1167 'decoder_func': 'DoClearDepthf',
1168 'gl_test_func': 'glClearDepth', 1168 'gl_test_func': 'glClearDepth',
1169 }, 1169 },
1170 'ColorMask': {'decoder_func': 'DoColorMask', 'expectation': False}, 1170 'ColorMask': {'decoder_func': 'DoColorMask', 'expectation': False},
1171 'ClearStencil': {'decoder_func': 'DoClearStencil'}, 1171 'ClearStencil': {'decoder_func': 'DoClearStencil'},
1172 'CommandBufferEnableCHROMIUM': { 1172 'EnableFeatureCHROMIUM': {
1173 'type': 'Custom', 1173 'type': 'Custom',
1174 'immediate': False, 1174 'immediate': False,
1175 'decoder_func': 'DoCommandBufferEnableCHROMIUM', 1175 'decoder_func': 'DoEnableFeatureCHROMIUM',
1176 'expectation': False, 1176 'expectation': False,
1177 'cmd_args': 'GLuint bucket_id, GLint* result', 1177 'cmd_args': 'GLuint bucket_id, GLint* result',
1178 'result': ['GLint'], 1178 'result': ['GLint'],
1179 'extension': True, 1179 'extension': True,
1180 'chromium': True, 1180 'chromium': True,
1181 }, 1181 },
1182 'CompileShader': {'decoder_func': 'DoCompileShader', 'unit_test': False}, 1182 'CompileShader': {'decoder_func': 'DoCompileShader', 'unit_test': False},
1183 'CompressedTexImage2D': { 1183 'CompressedTexImage2D': {
1184 'type': 'Manual', 1184 'type': 'Manual',
1185 'immediate': True, 1185 'immediate': True,
(...skipping 4811 matching lines...) Expand 10 before | Expand all | Expand 10 after
5997 5997
5998 if options.generate_docs: 5998 if options.generate_docs:
5999 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") 5999 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h")
6000 6000
6001 if gen.errors > 0: 6001 if gen.errors > 0:
6002 print "%d errors" % gen.errors 6002 print "%d errors" % gen.errors
6003 sys.exit(1) 6003 sys.exit(1)
6004 6004
6005 if __name__ == '__main__': 6005 if __name__ == '__main__':
6006 main(sys.argv[1:]) 6006 main(sys.argv[1:])
OLDNEW
« no previous file with comments | « gpu/GLES2/gles2_command_buffer.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698