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

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 1277543002: Add support for GL_EXT_debug_marker. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | mojo/gles2/gles2_impl.cc » ('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 GLES2 command buffers.""" 6 """code generator for GLES2 command buffers."""
7 7
8 import itertools 8 import itertools
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 3445 matching lines...) Expand 10 before | Expand all | Expand 10 after
3456 'type': 'GLchar', 3456 'type': 'GLchar',
3457 'extension': True, 3457 'extension': True,
3458 'data_transfer_methods': ['bucket'], 3458 'data_transfer_methods': ['bucket'],
3459 'needs_size': True, 3459 'needs_size': True,
3460 'gl_test_func': 'DoBindUniformLocationCHROMIUM', 3460 'gl_test_func': 'DoBindUniformLocationCHROMIUM',
3461 }, 3461 },
3462 'InsertEventMarkerEXT': { 3462 'InsertEventMarkerEXT': {
3463 'type': 'GLcharN', 3463 'type': 'GLcharN',
3464 'decoder_func': 'DoInsertEventMarkerEXT', 3464 'decoder_func': 'DoInsertEventMarkerEXT',
3465 'expectation': False, 3465 'expectation': False,
3466 'extension': True, 3466 'extension': "EXT_debug_marker",
3467 }, 3467 },
3468 'PushGroupMarkerEXT': { 3468 'PushGroupMarkerEXT': {
3469 'type': 'GLcharN', 3469 'type': 'GLcharN',
3470 'decoder_func': 'DoPushGroupMarkerEXT', 3470 'decoder_func': 'DoPushGroupMarkerEXT',
3471 'expectation': False, 3471 'expectation': False,
3472 'extension': True, 3472 'extension': "EXT_debug_marker",
3473 }, 3473 },
3474 'PopGroupMarkerEXT': { 3474 'PopGroupMarkerEXT': {
3475 'decoder_func': 'DoPopGroupMarkerEXT', 3475 'decoder_func': 'DoPopGroupMarkerEXT',
3476 'expectation': False, 3476 'expectation': False,
3477 'extension': True, 3477 'extension': "EXT_debug_marker",
3478 'impl_func': False, 3478 'impl_func': False,
3479 }, 3479 },
3480 3480
3481 'GenVertexArraysOES': { 3481 'GenVertexArraysOES': {
3482 'type': 'GENn', 3482 'type': 'GENn',
3483 'extension': "OES_vertex_array_object", 3483 'extension': "OES_vertex_array_object",
3484 'gl_test_func': 'glGenVertexArraysOES', 3484 'gl_test_func': 'glGenVertexArraysOES',
3485 'resource_type': 'VertexArray', 3485 'resource_type': 'VertexArray',
3486 'resource_types': 'VertexArrays', 3486 'resource_types': 'VertexArrays',
3487 'unit_test': False, 3487 'unit_test': False,
(...skipping 7141 matching lines...) Expand 10 before | Expand all | Expand 10 after
10629 "gles2_cmd_validation_implementation_autogen.h") 10629 "gles2_cmd_validation_implementation_autogen.h")
10630 gen.WriteCommonUtilsHeader( 10630 gen.WriteCommonUtilsHeader(
10631 "gpu/command_buffer/common/gles2_cmd_utils_autogen.h") 10631 "gpu/command_buffer/common/gles2_cmd_utils_autogen.h")
10632 gen.WriteCommonUtilsImpl( 10632 gen.WriteCommonUtilsImpl(
10633 "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h") 10633 "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h")
10634 gen.WriteGLES2Header("gpu/GLES2/gl2chromium_autogen.h") 10634 gen.WriteGLES2Header("gpu/GLES2/gl2chromium_autogen.h")
10635 mojo_gles2_prefix = ("mojo/public/c/gles2/gles2_call_visitor") 10635 mojo_gles2_prefix = ("mojo/public/c/gles2/gles2_call_visitor")
10636 gen.WriteMojoGLCallVisitor(mojo_gles2_prefix + "_autogen.h") 10636 gen.WriteMojoGLCallVisitor(mojo_gles2_prefix + "_autogen.h")
10637 mojo_extensions = ["CHROMIUM_texture_mailbox", "CHROMIUM_sync_point", 10637 mojo_extensions = ["CHROMIUM_texture_mailbox", "CHROMIUM_sync_point",
10638 "CHROMIUM_sub_image", "CHROMIUM_miscellaneous", 10638 "CHROMIUM_sub_image", "CHROMIUM_miscellaneous",
10639 "CHROMIUM_resize", "OES_vertex_array_object", 10639 "CHROMIUM_resize", "EXT_debug_marker",
10640 "occlusion_query_EXT"] 10640 "OES_vertex_array_object", "occlusion_query_EXT"]
10641 for extension in mojo_extensions: 10641 for extension in mojo_extensions:
10642 gen.WriteMojoGLCallVisitorForExtension( 10642 gen.WriteMojoGLCallVisitorForExtension(
10643 mojo_gles2_prefix + "_" + extension.lower() + "_autogen.h", extension) 10643 mojo_gles2_prefix + "_" + extension.lower() + "_autogen.h", extension)
10644 10644
10645 Format(gen.generated_cpp_filenames) 10645 Format(gen.generated_cpp_filenames)
10646 10646
10647 if gen.errors > 0: 10647 if gen.errors > 0:
10648 print "%d errors" % gen.errors 10648 print "%d errors" % gen.errors
10649 return 1 10649 return 1
10650 return 0 10650 return 0
10651 10651
10652 10652
10653 if __name__ == '__main__': 10653 if __name__ == '__main__':
10654 sys.exit(main(sys.argv[1:])) 10654 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | mojo/gles2/gles2_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698