| 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 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1532 'GL_NEVER', | 1532 'GL_NEVER', |
| 1533 ], | 1533 ], |
| 1534 }, | 1534 }, |
| 1535 'TextureCompareMode': { | 1535 'TextureCompareMode': { |
| 1536 'type': 'GLenum', | 1536 'type': 'GLenum', |
| 1537 'valid': [ | 1537 'valid': [ |
| 1538 'GL_NONE', | 1538 'GL_NONE', |
| 1539 'GL_COMPARE_REF_TO_TEXTURE', | 1539 'GL_COMPARE_REF_TO_TEXTURE', |
| 1540 ], | 1540 ], |
| 1541 }, | 1541 }, |
| 1542 'TextureSrgbDecodeExt': { | |
| 1543 'type': 'GLenum', | |
| 1544 'is_complete': True, | |
| 1545 'valid': [ | |
| 1546 'GL_DECODE_EXT', | |
| 1547 'GL_SKIP_DECODE_EXT', | |
| 1548 ], | |
| 1549 }, | |
| 1550 'TextureSwizzle': { | 1542 'TextureSwizzle': { |
| 1551 'type': 'GLenum', | 1543 'type': 'GLenum', |
| 1552 'is_complete': True, | 1544 'is_complete': True, |
| 1553 'valid': [ | 1545 'valid': [ |
| 1554 'GL_RED', | 1546 'GL_RED', |
| 1555 'GL_GREEN', | 1547 'GL_GREEN', |
| 1556 'GL_BLUE', | 1548 'GL_BLUE', |
| 1557 'GL_ALPHA', | 1549 'GL_ALPHA', |
| 1558 'GL_ZERO', | 1550 'GL_ZERO', |
| 1559 'GL_ONE', | 1551 'GL_ONE', |
| (...skipping 9633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11193 Format(gen.generated_cpp_filenames) | 11185 Format(gen.generated_cpp_filenames) |
| 11194 | 11186 |
| 11195 if gen.errors > 0: | 11187 if gen.errors > 0: |
| 11196 print "%d errors" % gen.errors | 11188 print "%d errors" % gen.errors |
| 11197 return 1 | 11189 return 1 |
| 11198 return 0 | 11190 return 0 |
| 11199 | 11191 |
| 11200 | 11192 |
| 11201 if __name__ == '__main__': | 11193 if __name__ == '__main__': |
| 11202 sys.exit(main(sys.argv[1:])) | 11194 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |