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

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

Issue 10822029: Use EXT_robustness where available on GLES2 platforms to detect and respond to resets of the graphi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review feedback. Rebuilt and re-tested. Created 8 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 | « third_party/khronos/EGL/eglext.h ('k') | ui/gl/gl_context.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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 """, }, 283 """, },
284 { 'return_type': 'void', 284 { 'return_type': 'void',
285 'names': ['glGetFloatv'], 285 'names': ['glGetFloatv'],
286 'arguments': 'GLenum pname, GLfloat* params', }, 286 'arguments': 'GLenum pname, GLfloat* params', },
287 { 'return_type': 'void', 287 { 'return_type': 'void',
288 'names': ['glGetFramebufferAttachmentParameterivEXT', 288 'names': ['glGetFramebufferAttachmentParameterivEXT',
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 'glGetGraphicsResetStatusEXT'],
294 'arguments': 'void', }, 295 'arguments': 'void', },
295 { 'return_type': 'void', 296 { 'return_type': 'void',
296 'names': ['glGetIntegerv'], 297 'names': ['glGetIntegerv'],
297 'arguments': 'GLenum pname, GLint* params', }, 298 'arguments': 'GLenum pname, GLint* params', },
298 { 'return_type': 'void', 299 { 'return_type': 'void',
299 'names': ['glGetProgramBinary', 'glGetProgramBinaryOES'], 300 'names': ['glGetProgramBinary', 'glGetProgramBinaryOES'],
300 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, ' 301 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, '
301 'GLenum* binaryFormat, GLvoid* binary', 302 'GLenum* binaryFormat, GLvoid* binary',
302 'other_extensions': ['ARB_get_program_binary', 303 'other_extensions': ['ARB_get_program_binary',
303 'OES_get_program_binary'] }, 304 'OES_get_program_binary'] },
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 source_file.close() 1546 source_file.close()
1546 1547
1547 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 1548 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
1548 GenerateMockSource(source_file, GL_FUNCTIONS) 1549 GenerateMockSource(source_file, GL_FUNCTIONS)
1549 source_file.close() 1550 source_file.close()
1550 return 0 1551 return 0
1551 1552
1552 1553
1553 if __name__ == '__main__': 1554 if __name__ == '__main__':
1554 sys.exit(main(sys.argv[1:])) 1555 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « third_party/khronos/EGL/eglext.h ('k') | ui/gl/gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698