| 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 os | 8 import os |
| 9 import os.path | 9 import os.path |
| 10 import sys | 10 import sys |
| (...skipping 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1752 'resource_types': 'VertexArrays', | 1752 'resource_types': 'VertexArrays', |
| 1753 'unit_test': False, | 1753 'unit_test': False, |
| 1754 }, | 1754 }, |
| 1755 'IsVertexArrayOES': { | 1755 'IsVertexArrayOES': { |
| 1756 'type': 'Is', | 1756 'type': 'Is', |
| 1757 'gl_test_func': 'glIsVertexArrayOES', | 1757 'gl_test_func': 'glIsVertexArrayOES', |
| 1758 'decoder_func': 'DoIsVertexArrayOES', | 1758 'decoder_func': 'DoIsVertexArrayOES', |
| 1759 'expectation': False, | 1759 'expectation': False, |
| 1760 'unit_test': False, | 1760 'unit_test': False, |
| 1761 }, | 1761 }, |
| 1762 'BindTexImage2DCHROMIUM': { |
| 1763 'decoder_func': 'DoBindTexImage2DCHROMIUM', |
| 1764 'unit_test': False, |
| 1765 'extension': True, |
| 1766 'chromium': True, |
| 1767 }, |
| 1768 'ReleaseTexImage2DCHROMIUM': { |
| 1769 'decoder_func': 'DoReleaseTexImage2DCHROMIUM', |
| 1770 'unit_test': False, |
| 1771 'extension': True, |
| 1772 'chromium': True, |
| 1773 }, |
| 1762 } | 1774 } |
| 1763 | 1775 |
| 1764 | 1776 |
| 1765 def SplitWords(input_string): | 1777 def SplitWords(input_string): |
| 1766 """Transforms a input_string into a list of lower-case components. | 1778 """Transforms a input_string into a list of lower-case components. |
| 1767 | 1779 |
| 1768 Args: | 1780 Args: |
| 1769 input_string: the input string. | 1781 input_string: the input string. |
| 1770 | 1782 |
| 1771 Returns: | 1783 Returns: |
| (...skipping 4736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6508 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") | 6520 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") |
| 6509 | 6521 |
| 6510 if gen.errors > 0: | 6522 if gen.errors > 0: |
| 6511 print "%d errors" % gen.errors | 6523 print "%d errors" % gen.errors |
| 6512 return 1 | 6524 return 1 |
| 6513 return 0 | 6525 return 0 |
| 6514 | 6526 |
| 6515 | 6527 |
| 6516 if __name__ == '__main__': | 6528 if __name__ == '__main__': |
| 6517 sys.exit(main(sys.argv[1:])) | 6529 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |