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 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 }, | 834 }, |
835 'QueryTarget': { | 835 'QueryTarget': { |
836 'type': 'GLenum', | 836 'type': 'GLenum', |
837 'valid': [ | 837 'valid': [ |
838 'GL_ANY_SAMPLES_PASSED_EXT', | 838 'GL_ANY_SAMPLES_PASSED_EXT', |
839 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', | 839 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', |
840 'GL_COMMANDS_ISSUED_CHROMIUM', | 840 'GL_COMMANDS_ISSUED_CHROMIUM', |
841 'GL_LATENCY_QUERY_CHROMIUM', | 841 'GL_LATENCY_QUERY_CHROMIUM', |
842 'GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM', | 842 'GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM', |
843 'GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM', | 843 'GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM', |
844 'GL_COMMANDS_COMPLETED_CHROMIUM', | |
845 ], | 844 ], |
846 }, | 845 }, |
847 'RenderBufferParameter': { | 846 'RenderBufferParameter': { |
848 'type': 'GLenum', | 847 'type': 'GLenum', |
849 'valid': [ | 848 'valid': [ |
850 'GL_RENDERBUFFER_RED_SIZE', | 849 'GL_RENDERBUFFER_RED_SIZE', |
851 'GL_RENDERBUFFER_GREEN_SIZE', | 850 'GL_RENDERBUFFER_GREEN_SIZE', |
852 'GL_RENDERBUFFER_BLUE_SIZE', | 851 'GL_RENDERBUFFER_BLUE_SIZE', |
853 'GL_RENDERBUFFER_ALPHA_SIZE', | 852 'GL_RENDERBUFFER_ALPHA_SIZE', |
854 'GL_RENDERBUFFER_DEPTH_SIZE', | 853 'GL_RENDERBUFFER_DEPTH_SIZE', |
(...skipping 7101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7956 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) | 7955 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) |
7957 | 7956 |
7958 if gen.errors > 0: | 7957 if gen.errors > 0: |
7959 print "%d errors" % gen.errors | 7958 print "%d errors" % gen.errors |
7960 return 1 | 7959 return 1 |
7961 return 0 | 7960 return 0 |
7962 | 7961 |
7963 | 7962 |
7964 if __name__ == '__main__': | 7963 if __name__ == '__main__': |
7965 sys.exit(main(sys.argv[1:])) | 7964 sys.exit(main(sys.argv[1:])) |
OLD | NEW |