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

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

Issue 586503003: Fixed issue where disjoint timer offsets were incorrectly calculated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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
« no previous file with comments | « gpu/command_buffer/service/gpu_tracer.cc ('k') | no next file » | 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 optparse 8 import optparse
9 import os 9 import os
10 import collections 10 import collections
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 'arguments': 'GLenum target, ' 328 'arguments': 'GLenum target, '
329 'GLenum attachment, GLenum pname, GLint* params', }, 329 'GLenum attachment, GLenum pname, GLint* params', },
330 { 'return_type': 'GLenum', 330 { 'return_type': 'GLenum',
331 'names': ['glGetGraphicsResetStatusARB', 331 'names': ['glGetGraphicsResetStatusARB',
332 'glGetGraphicsResetStatusEXT'], 332 'glGetGraphicsResetStatusEXT'],
333 'arguments': 'void', }, 333 'arguments': 'void', },
334 { 'return_type': 'void', 334 { 'return_type': 'void',
335 'names': ['glGetIntegerv'], 335 'names': ['glGetIntegerv'],
336 'arguments': 'GLenum pname, GLint* params', }, 336 'arguments': 'GLenum pname, GLint* params', },
337 { 'return_type': 'void', 337 { 'return_type': 'void',
338 'names': ['glGetInteger64v'],
339 'arguments': 'GLenum pname, GLint64* params', },
340 { 'return_type': 'void',
338 'known_as': 'glGetProgramBinary', 341 'known_as': 'glGetProgramBinary',
339 'versions': [{ 'name': 'glGetProgramBinaryOES' }, 342 'versions': [{ 'name': 'glGetProgramBinaryOES' },
340 { 'name': 'glGetProgramBinary', 343 { 'name': 'glGetProgramBinary',
341 'extensions': ['GL_ARB_get_program_binary'] }, 344 'extensions': ['GL_ARB_get_program_binary'] },
342 { 'name': 'glGetProgramBinary' }], 345 { 'name': 'glGetProgramBinary' }],
343 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, ' 346 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, '
344 'GLenum* binaryFormat, GLvoid* binary' }, 347 'GLenum* binaryFormat, GLvoid* binary' },
345 { 'return_type': 'void', 348 { 'return_type': 'void',
346 'names': ['glGetProgramiv'], 349 'names': ['glGetProgramiv'],
347 'arguments': 'GLuint program, GLenum pname, GLint* params', }, 350 'arguments': 'GLuint program, GLenum pname, GLint* params', },
(...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 2079
2077 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2080 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2078 'wb') 2081 'wb')
2079 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2082 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2080 source_file.close() 2083 source_file.close()
2081 return 0 2084 return 0
2082 2085
2083 2086
2084 if __name__ == '__main__': 2087 if __name__ == '__main__':
2085 sys.exit(main(sys.argv[1:])) 2088 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_tracer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698