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

Side by Side Diff: ui/gl/generate_bindings.py

Issue 10795037: Revert 147328 - Current status of patch: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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/gpu_common.gypi ('k') | ui/gl/gl_interface.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/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 GL/GLES extension wrangler.""" 6 """code generator for GL/GLES extension wrangler."""
7 7
8 import os 8 import os
9 import collections 9 import collections
10 import re 10 import re
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 'glGetFramebufferAttachmentParameteriv'], 289 'glGetFramebufferAttachmentParameteriv'],
290 'arguments': 'GLenum target, ' 290 'arguments': 'GLenum target, '
291 'GLenum attachment, GLenum pname, GLint* params', }, 291 'GLenum attachment, GLenum pname, GLint* params', },
292 { 'return_type': 'GLenum', 292 { 'return_type': 'GLenum',
293 'names': ['glGetGraphicsResetStatusARB'], 293 'names': ['glGetGraphicsResetStatusARB'],
294 'arguments': 'void', }, 294 'arguments': 'void', },
295 { 'return_type': 'void', 295 { 'return_type': 'void',
296 'names': ['glGetIntegerv'], 296 'names': ['glGetIntegerv'],
297 'arguments': 'GLenum pname, GLint* params', }, 297 'arguments': 'GLenum pname, GLint* params', },
298 { 'return_type': 'void', 298 { 'return_type': 'void',
299 'names': ['glGetProgramBinary', 'glGetProgramBinaryOES'],
300 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, '
301 'GLenum* binaryFormat, GLvoid* binary', },
302 { 'return_type': 'void',
303 'names': ['glGetProgramiv'], 299 'names': ['glGetProgramiv'],
304 'arguments': 'GLuint program, GLenum pname, GLint* params', }, 300 'arguments': 'GLuint program, GLenum pname, GLint* params', },
305 { 'return_type': 'void', 301 { 'return_type': 'void',
306 'names': ['glGetProgramInfoLog'], 302 'names': ['glGetProgramInfoLog'],
307 'arguments': 303 'arguments':
308 'GLuint program, GLsizei bufsize, GLsizei* length, char* infolog', }, 304 'GLuint program, GLsizei bufsize, GLsizei* length, char* infolog', },
309 { 'return_type': 'void', 305 { 'return_type': 'void',
310 'names': ['glGetQueryiv'], 306 'names': ['glGetQueryiv'],
311 'arguments': 'GLenum target, GLenum pname, GLint* params', }, 307 'arguments': 'GLenum target, GLenum pname, GLint* params', },
312 { 'return_type': 'void', 308 { 'return_type': 'void',
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 { 'return_type': 'void', 417 { 'return_type': 'void',
422 'names': ['glPixelStorei'], 418 'names': ['glPixelStorei'],
423 'arguments': 'GLenum pname, GLint param', }, 419 'arguments': 'GLenum pname, GLint param', },
424 { 'return_type': 'void', 420 { 'return_type': 'void',
425 'names': ['glPointParameteri'], 421 'names': ['glPointParameteri'],
426 'arguments': 'GLenum pname, GLint param', }, 422 'arguments': 'GLenum pname, GLint param', },
427 { 'return_type': 'void', 423 { 'return_type': 'void',
428 'names': ['glPolygonOffset'], 424 'names': ['glPolygonOffset'],
429 'arguments': 'GLfloat factor, GLfloat units', }, 425 'arguments': 'GLfloat factor, GLfloat units', },
430 { 'return_type': 'void', 426 { 'return_type': 'void',
431 'names': ['glProgramBinary', 'glProgramBinaryOES'],
432 'arguments': 'GLuint program, GLenum binaryFormat, '
433 'const GLvoid* binary, GLsizei length', },
434 { 'return_type': 'void',
435 'names': ['glQueryCounter'], 427 'names': ['glQueryCounter'],
436 'arguments': 'GLuint id, GLenum target', }, 428 'arguments': 'GLuint id, GLenum target', },
437 { 'return_type': 'void', 429 { 'return_type': 'void',
438 'names': ['glReadBuffer'], 430 'names': ['glReadBuffer'],
439 'arguments': 'GLenum src', }, 431 'arguments': 'GLenum src', },
440 { 'return_type': 'void', 432 { 'return_type': 'void',
441 'names': ['glReadPixels'], 433 'names': ['glReadPixels'],
442 'arguments': 434 'arguments':
443 'GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, ' 435 'GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, '
444 'GLenum type, void* pixels', }, 436 'GLenum type, void* pixels', },
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 source_file.close() 1529 source_file.close()
1538 1530
1539 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 1531 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
1540 GenerateMockSource(source_file, GL_FUNCTIONS) 1532 GenerateMockSource(source_file, GL_FUNCTIONS)
1541 source_file.close() 1533 source_file.close()
1542 return 0 1534 return 0
1543 1535
1544 1536
1545 if __name__ == '__main__': 1537 if __name__ == '__main__':
1546 sys.exit(main(sys.argv[1:])) 1538 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/gpu_common.gypi ('k') | ui/gl/gl_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698