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

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

Issue 291493005: Fix a typo in glBufferData and glBufferSubData 's arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « AUTHORS ('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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, ' 92 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, '
93 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, ' 93 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, '
94 'GLbitfield mask, GLenum filter', }, 94 'GLbitfield mask, GLenum filter', },
95 { 'return_type': 'void', 95 { 'return_type': 'void',
96 'names': ['glBlitFramebufferANGLE', 'glBlitFramebuffer'], 96 'names': ['glBlitFramebufferANGLE', 'glBlitFramebuffer'],
97 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, ' 97 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, '
98 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, ' 98 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, '
99 'GLbitfield mask, GLenum filter', }, 99 'GLbitfield mask, GLenum filter', },
100 { 'return_type': 'void', 100 { 'return_type': 'void',
101 'names': ['glBufferData'], 101 'names': ['glBufferData'],
102 'arguments': 'GLenum target, GLsizei size, const void* data, GLenum usage', }, 102 'arguments':
103 'GLenum target, GLsizeiptr size, const void* data, GLenum usage', },
103 { 'return_type': 'void', 104 { 'return_type': 'void',
104 'names': ['glBufferSubData'], 105 'names': ['glBufferSubData'],
105 'arguments': 'GLenum target, GLint offset, GLsizei size, const void* data', }, 106 'arguments':
107 'GLenum target, GLintptr offset, GLsizeiptr size, const void* data', },
106 { 'return_type': 'GLenum', 108 { 'return_type': 'GLenum',
107 'names': ['glCheckFramebufferStatusEXT', 109 'names': ['glCheckFramebufferStatusEXT',
108 'glCheckFramebufferStatus'], 110 'glCheckFramebufferStatus'],
109 'arguments': 'GLenum target', 111 'arguments': 'GLenum target',
110 'logging_code': """ 112 'logging_code': """
111 GL_SERVICE_LOG("GL_RESULT: " << GLES2Util::GetStringEnum(result)); 113 GL_SERVICE_LOG("GL_RESULT: " << GLES2Util::GetStringEnum(result));
112 """, }, 114 """, },
113 { 'return_type': 'void', 115 { 'return_type': 'void',
114 'names': ['glClear'], 116 'names': ['glClear'],
115 'arguments': 'GLbitfield mask', }, 117 'arguments': 'GLbitfield mask', },
(...skipping 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after
2047 2049
2048 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2050 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2049 'wb') 2051 'wb')
2050 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2052 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2051 source_file.close() 2053 source_file.close()
2052 return 0 2054 return 0
2053 2055
2054 2056
2055 if __name__ == '__main__': 2057 if __name__ == '__main__':
2056 sys.exit(main(sys.argv[1:])) 2058 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698