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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 'GL_SHADER_BINARY_FORMATS', | 583 'GL_SHADER_BINARY_FORMATS', |
584 'GL_SHADER_COMPILER', | 584 'GL_SHADER_COMPILER', |
585 'GL_SUBPIXEL_BITS', | 585 'GL_SUBPIXEL_BITS', |
586 'GL_STENCIL_BITS', | 586 'GL_STENCIL_BITS', |
587 'GL_TEXTURE_BINDING_2D', | 587 'GL_TEXTURE_BINDING_2D', |
588 'GL_TEXTURE_BINDING_CUBE_MAP', | 588 'GL_TEXTURE_BINDING_CUBE_MAP', |
589 'GL_UNPACK_ALIGNMENT', | 589 'GL_UNPACK_ALIGNMENT', |
590 'GL_UNPACK_FLIP_Y_CHROMIUM', | 590 'GL_UNPACK_FLIP_Y_CHROMIUM', |
591 'GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM', | 591 'GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM', |
592 'GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM', | 592 'GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM', |
| 593 'GL_BIND_GENERATES_RESOURCE_CHROMIUM', |
593 # we can add this because we emulate it if the driver does not support it. | 594 # we can add this because we emulate it if the driver does not support it. |
594 'GL_VERTEX_ARRAY_BINDING_OES', | 595 'GL_VERTEX_ARRAY_BINDING_OES', |
595 'GL_VIEWPORT', | 596 'GL_VIEWPORT', |
596 ], | 597 ], |
597 'invalid': [ | 598 'invalid': [ |
598 'GL_FOG_HINT', | 599 'GL_FOG_HINT', |
599 ], | 600 ], |
600 }, | 601 }, |
601 'GetTexParamTarget': { | 602 'GetTexParamTarget': { |
602 'type': 'GLenum', | 603 'type': 'GLenum', |
(...skipping 7302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7905 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) | 7906 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) |
7906 | 7907 |
7907 if gen.errors > 0: | 7908 if gen.errors > 0: |
7908 print "%d errors" % gen.errors | 7909 print "%d errors" % gen.errors |
7909 return 1 | 7910 return 1 |
7910 return 0 | 7911 return 0 |
7911 | 7912 |
7912 | 7913 |
7913 if __name__ == '__main__': | 7914 if __name__ == '__main__': |
7914 sys.exit(main(sys.argv[1:])) | 7915 sys.exit(main(sys.argv[1:])) |
OLD | NEW |