Chromium Code Reviews| 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 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 821 ], | 821 ], |
| 822 }, | 822 }, |
| 823 'QueryTarget': { | 823 'QueryTarget': { |
| 824 'type': 'GLenum', | 824 'type': 'GLenum', |
| 825 'valid': [ | 825 'valid': [ |
| 826 'GL_ANY_SAMPLES_PASSED_EXT', | 826 'GL_ANY_SAMPLES_PASSED_EXT', |
| 827 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', | 827 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', |
| 828 'GL_COMMANDS_ISSUED_CHROMIUM', | 828 'GL_COMMANDS_ISSUED_CHROMIUM', |
| 829 'GL_LATENCY_QUERY_CHROMIUM', | 829 'GL_LATENCY_QUERY_CHROMIUM', |
| 830 'GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM', | 830 'GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM', |
| 831 'GL_ASYNC_PIXEL_UNPACK_COMPLETED_PRIVATE_CHROMIUM', | |
|
reveman
2014/01/02 01:31:29
Are clients prevented from using this somehow?
Di
jadahl
2014/01/02 10:59:54
The idea is that this target should be private, an
reveman
2014/01/02 11:56:44
The idea is that this would make it easy to keep i
| |
| 831 'GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM', | 832 'GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM', |
| 832 ], | 833 ], |
| 833 }, | 834 }, |
| 834 'RenderBufferParameter': { | 835 'RenderBufferParameter': { |
| 835 'type': 'GLenum', | 836 'type': 'GLenum', |
| 836 'valid': [ | 837 'valid': [ |
| 837 'GL_RENDERBUFFER_RED_SIZE', | 838 'GL_RENDERBUFFER_RED_SIZE', |
| 838 'GL_RENDERBUFFER_GREEN_SIZE', | 839 'GL_RENDERBUFFER_GREEN_SIZE', |
| 839 'GL_RENDERBUFFER_BLUE_SIZE', | 840 'GL_RENDERBUFFER_BLUE_SIZE', |
| 840 'GL_RENDERBUFFER_ALPHA_SIZE', | 841 'GL_RENDERBUFFER_ALPHA_SIZE', |
| (...skipping 6997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7838 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") | 7839 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") |
| 7839 | 7840 |
| 7840 if gen.errors > 0: | 7841 if gen.errors > 0: |
| 7841 print "%d errors" % gen.errors | 7842 print "%d errors" % gen.errors |
| 7842 return 1 | 7843 return 1 |
| 7843 return 0 | 7844 return 0 |
| 7844 | 7845 |
| 7845 | 7846 |
| 7846 if __name__ == '__main__': | 7847 if __name__ == '__main__': |
| 7847 sys.exit(main(sys.argv[1:])) | 7848 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |