| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # | 2 # |
| 3 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """code generator for GLES2 command buffers.""" | 7 """code generator for GLES2 command buffers.""" |
| 8 | 8 |
| 9 import os | 9 import os |
| 10 import os.path | 10 import os.path |
| (...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 'impl_decl': False, | 1023 'impl_decl': False, |
| 1024 }, | 1024 }, |
| 1025 'DrawElements': { | 1025 'DrawElements': { |
| 1026 'type': 'Manual', | 1026 'type': 'Manual', |
| 1027 'cmd_args': 'GLenum mode, GLsizei count, GLenum type, GLuint index_offset', | 1027 'cmd_args': 'GLenum mode, GLsizei count, GLenum type, GLuint index_offset', |
| 1028 }, | 1028 }, |
| 1029 'EnableVertexAttribArray': { | 1029 'EnableVertexAttribArray': { |
| 1030 'decoder_func': 'DoEnableVertexAttribArray', | 1030 'decoder_func': 'DoEnableVertexAttribArray', |
| 1031 'impl_decl': False, | 1031 'impl_decl': False, |
| 1032 }, | 1032 }, |
| 1033 'Finish': {'impl_func': False}, | 1033 'Finish': { |
| 1034 'impl_func': False, |
| 1035 'decoder_func': 'glFlush', |
| 1036 'gl_test_func': 'glFlush', |
| 1037 }, |
| 1034 'Flush': {'impl_func': False}, | 1038 'Flush': {'impl_func': False}, |
| 1035 'FramebufferRenderbuffer': { | 1039 'FramebufferRenderbuffer': { |
| 1036 'decoder_func': 'DoFramebufferRenderbuffer', | 1040 'decoder_func': 'DoFramebufferRenderbuffer', |
| 1037 'gl_test_func': 'glFramebufferRenderbufferEXT', | 1041 'gl_test_func': 'glFramebufferRenderbufferEXT', |
| 1038 }, | 1042 }, |
| 1039 'FramebufferTexture2D': { | 1043 'FramebufferTexture2D': { |
| 1040 'decoder_func': 'DoFramebufferTexture2D', | 1044 'decoder_func': 'DoFramebufferTexture2D', |
| 1041 'gl_test_func': 'glFramebufferTexture2DEXT', | 1045 'gl_test_func': 'glFramebufferTexture2DEXT', |
| 1042 }, | 1046 }, |
| 1043 'GenerateMipmap': { | 1047 'GenerateMipmap': { |
| (...skipping 3665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4709 | 4713 |
| 4710 if options.generate_docs: | 4714 if options.generate_docs: |
| 4711 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") | 4715 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") |
| 4712 | 4716 |
| 4713 if gen.errors > 0: | 4717 if gen.errors > 0: |
| 4714 print "%d errors" % gen.errors | 4718 print "%d errors" % gen.errors |
| 4715 sys.exit(1) | 4719 sys.exit(1) |
| 4716 | 4720 |
| 4717 if __name__ == '__main__': | 4721 if __name__ == '__main__': |
| 4718 main(sys.argv[1:]) | 4722 main(sys.argv[1:]) |
| OLD | NEW |