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