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

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

Issue 2781863002: Revert of Update the passthrough command decoder to use the new CHROMIUM_copy_texture. (Closed)
Patch Set: Created 3 years, 8 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
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 'GLenum format, GLsizei imageSize, const void* data', }, 257 'GLenum format, GLsizei imageSize, const void* data', },
258 { 'return_type': 'void', 258 { 'return_type': 'void',
259 'versions': [{ 'name': 'glCopyBufferSubData' }], 259 'versions': [{ 'name': 'glCopyBufferSubData' }],
260 'arguments': 260 'arguments':
261 'GLenum readTarget, GLenum writeTarget, GLintptr readOffset, ' 261 'GLenum readTarget, GLenum writeTarget, GLintptr readOffset, '
262 'GLintptr writeOffset, GLsizeiptr size', }, 262 'GLintptr writeOffset, GLsizeiptr size', },
263 { 'return_type': 'void', 263 { 'return_type': 'void',
264 'versions': [{ 'name': 'glCopySubTextureCHROMIUM', 264 'versions': [{ 'name': 'glCopySubTextureCHROMIUM',
265 'extensions': ['GL_CHROMIUM_copy_texture'], }], 265 'extensions': ['GL_CHROMIUM_copy_texture'], }],
266 'arguments': 266 'arguments':
267 'GLuint sourceId, GLint sourceLevel, GLenum destTarget, GLuint destId, ' 267 'GLuint sourceId, GLuint destId, GLint xoffset, GLint yoffset, '
268 'GLint destLevel, GLint xoffset, GLint yoffset, GLint x, GLint y, ' 268 'GLint x, GLint y, GLsizei width, GLsizei height, '
269 'GLsizei width, GLsizei height, GLboolean unpackFlipY, ' 269 'GLboolean unpackFlipY, GLboolean unpackPremultiplyAlpha, '
270 'GLboolean unpackPremultiplyAlpha, GLboolean unpackUnmultiplyAlpha', }, 270 'GLboolean unpackUnmultiplyAlpha', },
271 { 'return_type': 'void', 271 { 'return_type': 'void',
272 'names': ['glCopyTexImage2D'], 272 'names': ['glCopyTexImage2D'],
273 'arguments': 273 'arguments':
274 'GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, ' 274 'GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, '
275 'GLsizei width, GLsizei height, GLint border', }, 275 'GLsizei width, GLsizei height, GLint border', },
276 { 'return_type': 'void', 276 { 'return_type': 'void',
277 'names': ['glCopyTexSubImage2D'], 277 'names': ['glCopyTexSubImage2D'],
278 'arguments': 278 'arguments':
279 'GLenum target, GLint level, GLint xoffset, ' 279 'GLenum target, GLint level, GLint xoffset, '
280 'GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height', }, 280 'GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height', },
281 { 'return_type': 'void', 281 { 'return_type': 'void',
282 'versions': [{ 'name': 'glCopyTexSubImage3D' }], 282 'versions': [{ 'name': 'glCopyTexSubImage3D' }],
283 'arguments': 283 'arguments':
284 'GLenum target, GLint level, GLint xoffset, GLint yoffset, ' 284 'GLenum target, GLint level, GLint xoffset, GLint yoffset, '
285 'GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height', }, 285 'GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height', },
286 { 'return_type': 'void', 286 { 'return_type': 'void',
287 'versions': [{ 'name': 'glCopyTextureCHROMIUM', 287 'versions': [{ 'name': 'glCopyTextureCHROMIUM',
288 'extensions': ['GL_CHROMIUM_copy_texture'], }], 288 'extensions': ['GL_CHROMIUM_copy_texture'], }],
289 'arguments': 289 'arguments':
290 'GLuint sourceId, GLint sourceLevel, GLenum destTarget, GLuint destId, ' 290 'GLuint sourceId, GLuint destId, GLint internalFormat, '
291 'GLint destLevel, GLint internalFormat, GLenum destType, ' 291 'GLenum destType, GLboolean unpackFlipY, '
292 'GLboolean unpackFlipY, GLboolean unpackPremultiplyAlpha, ' 292 'GLboolean unpackPremultiplyAlpha, GLboolean unpackUnmultiplyAlpha', },
293 'GLboolean unpackUnmultiplyAlpha', },
294 { 'return_type': 'void', 293 { 'return_type': 'void',
295 'names': ['glCoverageModulationNV'], 294 'names': ['glCoverageModulationNV'],
296 'arguments': 'GLenum components'}, 295 'arguments': 'GLenum components'},
297 { 'return_type': 'void', 296 { 'return_type': 'void',
298 'names': ['glCoverFillPathInstancedNV'], 297 'names': ['glCoverFillPathInstancedNV'],
299 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, ' 298 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
300 'GLuint pathBase, GLenum coverMode, GLenum transformType, ' 299 'GLuint pathBase, GLenum coverMode, GLenum transformType, '
301 'const GLfloat* transformValues' }, 300 'const GLfloat* transformValues' },
302 { 'return_type': 'void', 301 { 'return_type': 'void',
303 'names': ['glCoverFillPathNV'], 302 'names': ['glCoverFillPathNV'],
(...skipping 3059 matching lines...) Expand 10 before | Expand all | Expand 10 after
3363 header_file = open( 3362 header_file = open(
3364 os.path.join(directory, 'gl_stub_autogen_gl.cc'), 'wb') 3363 os.path.join(directory, 'gl_stub_autogen_gl.cc'), 'wb')
3365 GenerateStubSource(header_file, GL_FUNCTIONS) 3364 GenerateStubSource(header_file, GL_FUNCTIONS)
3366 header_file.close() 3365 header_file.close()
3367 ClangFormat(header_file.name) 3366 ClangFormat(header_file.name)
3368 return 0 3367 return 0
3369 3368
3370 3369
3371 if __name__ == '__main__': 3370 if __name__ == '__main__':
3372 sys.exit(main(sys.argv[1:])) 3371 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc ('k') | ui/gl/gl_bindings_api_autogen_gl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698