| 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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 'GL_FRAMEBUFFER', | 596 'GL_FRAMEBUFFER', |
| 597 ], | 597 ], |
| 598 'valid_es3': [ | 598 'valid_es3': [ |
| 599 'GL_DRAW_FRAMEBUFFER' , | 599 'GL_DRAW_FRAMEBUFFER' , |
| 600 'GL_READ_FRAMEBUFFER' , | 600 'GL_READ_FRAMEBUFFER' , |
| 601 ], | 601 ], |
| 602 'invalid': [ | 602 'invalid': [ |
| 603 'GL_RENDERBUFFER', | 603 'GL_RENDERBUFFER', |
| 604 ], | 604 ], |
| 605 }, | 605 }, |
| 606 'InvalidateFrameBufferTarget': { | |
| 607 'type': 'GLenum', | |
| 608 'valid': [ | |
| 609 'GL_FRAMEBUFFER', | |
| 610 ], | |
| 611 'invalid': [ | |
| 612 'GL_DRAW_FRAMEBUFFER' , | |
| 613 'GL_READ_FRAMEBUFFER' , | |
| 614 ], | |
| 615 }, | |
| 616 'RenderBufferTarget': { | 606 'RenderBufferTarget': { |
| 617 'type': 'GLenum', | 607 'type': 'GLenum', |
| 618 'valid': [ | 608 'valid': [ |
| 619 'GL_RENDERBUFFER', | 609 'GL_RENDERBUFFER', |
| 620 ], | 610 ], |
| 621 'invalid': [ | 611 'invalid': [ |
| 622 'GL_FRAMEBUFFER', | 612 'GL_FRAMEBUFFER', |
| 623 ], | 613 ], |
| 624 }, | 614 }, |
| 625 'BufferTarget': { | 615 'BufferTarget': { |
| (...skipping 10489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11115 Format(gen.generated_cpp_filenames) | 11105 Format(gen.generated_cpp_filenames) |
| 11116 | 11106 |
| 11117 if gen.errors > 0: | 11107 if gen.errors > 0: |
| 11118 print "%d errors" % gen.errors | 11108 print "%d errors" % gen.errors |
| 11119 return 1 | 11109 return 1 |
| 11120 return 0 | 11110 return 0 |
| 11121 | 11111 |
| 11122 | 11112 |
| 11123 if __name__ == '__main__': | 11113 if __name__ == '__main__': |
| 11124 sys.exit(main(sys.argv[1:])) | 11114 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |