| OLD | NEW |
| 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 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1771 ], | 1771 ], |
| 1772 }, | 1772 }, |
| 1773 'GetShaderSource': { | 1773 'GetShaderSource': { |
| 1774 'type': 'STRn', | 1774 'type': 'STRn', |
| 1775 'get_len_func': 'DoGetShaderiv', | 1775 'get_len_func': 'DoGetShaderiv', |
| 1776 'get_len_enum': 'GL_SHADER_SOURCE_LENGTH', | 1776 'get_len_enum': 'GL_SHADER_SOURCE_LENGTH', |
| 1777 'unit_test': False, | 1777 'unit_test': False, |
| 1778 'client_test': False, | 1778 'client_test': False, |
| 1779 }, | 1779 }, |
| 1780 'GetString': { | 1780 'GetString': { |
| 1781 'type': 'Custom', | 1781 'type': 'Custom', |
| 1782 'client_test': False, | 1782 'client_test': False, |
| 1783 'cmd_args': 'GLenumStringType name, uint32 bucket_id', | 1783 'cmd_args': 'GLenumStringType name, uint32 bucket_id', |
| 1784 }, | 1784 }, |
| 1785 'GetTexParameterfv': {'type': 'GETn', 'result': ['SizedResult<GLfloat>']}, | 1785 'GetTexParameterfv': { |
| 1786 'GetTexParameteriv': {'type': 'GETn', 'result': ['SizedResult<GLint>']}, | 1786 'type': 'GETn', |
| 1787 'decoder_func': 'DoGetTexParameterfv', |
| 1788 'result': ['SizedResult<GLfloat>'] |
| 1789 }, |
| 1790 'GetTexParameteriv': { |
| 1791 'type': 'GETn', |
| 1792 'decoder_func': 'DoGetTexParameteriv', |
| 1793 'result': ['SizedResult<GLint>'] |
| 1794 }, |
| 1787 'GetTranslatedShaderSourceANGLE': { | 1795 'GetTranslatedShaderSourceANGLE': { |
| 1788 'type': 'STRn', | 1796 'type': 'STRn', |
| 1789 'get_len_func': 'DoGetShaderiv', | 1797 'get_len_func': 'DoGetShaderiv', |
| 1790 'get_len_enum': 'GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE', | 1798 'get_len_enum': 'GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE', |
| 1791 'unit_test': False, | 1799 'unit_test': False, |
| 1792 'extension': True, | 1800 'extension': True, |
| 1793 }, | 1801 }, |
| 1794 'GetUniformfv': { | 1802 'GetUniformfv': { |
| 1795 'type': 'Custom', | 1803 'type': 'Custom', |
| 1796 'immediate': False, | 1804 'immediate': False, |
| (...skipping 6101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7898 "../../mojo/public/gles2/gles2_call_visitor_autogen.h") | 7906 "../../mojo/public/gles2/gles2_call_visitor_autogen.h") |
| 7899 | 7907 |
| 7900 if gen.errors > 0: | 7908 if gen.errors > 0: |
| 7901 print "%d errors" % gen.errors | 7909 print "%d errors" % gen.errors |
| 7902 return 1 | 7910 return 1 |
| 7903 return 0 | 7911 return 0 |
| 7904 | 7912 |
| 7905 | 7913 |
| 7906 if __name__ == '__main__': | 7914 if __name__ == '__main__': |
| 7907 sys.exit(main(sys.argv[1:])) | 7915 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |