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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 ], | 819 ], |
820 }, | 820 }, |
821 'QueryTarget': { | 821 'QueryTarget': { |
822 'type': 'GLenum', | 822 'type': 'GLenum', |
823 'valid': [ | 823 'valid': [ |
824 'GL_ANY_SAMPLES_PASSED_EXT', | 824 'GL_ANY_SAMPLES_PASSED_EXT', |
825 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', | 825 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', |
826 'GL_COMMANDS_ISSUED_CHROMIUM', | 826 'GL_COMMANDS_ISSUED_CHROMIUM', |
827 'GL_LATENCY_QUERY_CHROMIUM', | 827 'GL_LATENCY_QUERY_CHROMIUM', |
828 'GL_ASYNC_PIXEL_TRANSFERS_COMPLETED_CHROMIUM', | 828 'GL_ASYNC_PIXEL_TRANSFERS_COMPLETED_CHROMIUM', |
| 829 'GL_ASYNC_READ_PIXELS_COMPLETED_CHROMIUM', |
829 ], | 830 ], |
830 }, | 831 }, |
831 'RenderBufferParameter': { | 832 'RenderBufferParameter': { |
832 'type': 'GLenum', | 833 'type': 'GLenum', |
833 'valid': [ | 834 'valid': [ |
834 'GL_RENDERBUFFER_RED_SIZE', | 835 'GL_RENDERBUFFER_RED_SIZE', |
835 'GL_RENDERBUFFER_GREEN_SIZE', | 836 'GL_RENDERBUFFER_GREEN_SIZE', |
836 'GL_RENDERBUFFER_BLUE_SIZE', | 837 'GL_RENDERBUFFER_BLUE_SIZE', |
837 'GL_RENDERBUFFER_ALPHA_SIZE', | 838 'GL_RENDERBUFFER_ALPHA_SIZE', |
838 'GL_RENDERBUFFER_DEPTH_SIZE', | 839 'GL_RENDERBUFFER_DEPTH_SIZE', |
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1901 '// it is easier to specify the result going to some specific place\n' | 1902 '// it is easier to specify the result going to some specific place\n' |
1902 '// that exactly fits the rectangle of pixels.\n', | 1903 '// that exactly fits the rectangle of pixels.\n', |
1903 'type': 'Custom', | 1904 'type': 'Custom', |
1904 'immediate': False, | 1905 'immediate': False, |
1905 'impl_func': False, | 1906 'impl_func': False, |
1906 'client_test': False, | 1907 'client_test': False, |
1907 'cmd_args': | 1908 'cmd_args': |
1908 'GLint x, GLint y, GLsizei width, GLsizei height, ' | 1909 'GLint x, GLint y, GLsizei width, GLsizei height, ' |
1909 'GLenumReadPixelFormat format, GLenumReadPixelType type, ' | 1910 'GLenumReadPixelFormat format, GLenumReadPixelType type, ' |
1910 'uint32 pixels_shm_id, uint32 pixels_shm_offset, ' | 1911 'uint32 pixels_shm_id, uint32 pixels_shm_offset, ' |
1911 'uint32 result_shm_id, uint32 result_shm_offset', | 1912 'uint32 result_shm_id, uint32 result_shm_offset, ' |
| 1913 'GLboolean async', |
1912 'result': ['uint32'], | 1914 'result': ['uint32'], |
1913 'defer_reads': True, | 1915 'defer_reads': True, |
1914 }, | 1916 }, |
1915 'RegisterSharedIdsCHROMIUM': { | 1917 'RegisterSharedIdsCHROMIUM': { |
1916 'type': 'Custom', | 1918 'type': 'Custom', |
1917 'decoder_func': 'DoRegisterSharedIdsCHROMIUM', | 1919 'decoder_func': 'DoRegisterSharedIdsCHROMIUM', |
1918 'impl_func': False, | 1920 'impl_func': False, |
1919 'expectation': False, | 1921 'expectation': False, |
1920 'immediate': False, | 1922 'immediate': False, |
1921 'extension': True, | 1923 'extension': True, |
(...skipping 5879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7801 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") | 7803 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") |
7802 | 7804 |
7803 if gen.errors > 0: | 7805 if gen.errors > 0: |
7804 print "%d errors" % gen.errors | 7806 print "%d errors" % gen.errors |
7805 return 1 | 7807 return 1 |
7806 return 0 | 7808 return 0 |
7807 | 7809 |
7808 | 7810 |
7809 if __name__ == '__main__': | 7811 if __name__ == '__main__': |
7810 sys.exit(main(sys.argv[1:])) | 7812 sys.exit(main(sys.argv[1:])) |
OLD | NEW |