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