| 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 1883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1894 '// it is easier to specify the result going to some specific place\n' | 1894 '// it is easier to specify the result going to some specific place\n' |
| 1895 '// that exactly fits the rectangle of pixels.\n', | 1895 '// that exactly fits the rectangle of pixels.\n', |
| 1896 'type': 'Custom', | 1896 'type': 'Custom', |
| 1897 'immediate': False, | 1897 'immediate': False, |
| 1898 'impl_func': False, | 1898 'impl_func': False, |
| 1899 'client_test': False, | 1899 'client_test': False, |
| 1900 'cmd_args': | 1900 'cmd_args': |
| 1901 'GLint x, GLint y, GLsizei width, GLsizei height, ' | 1901 'GLint x, GLint y, GLsizei width, GLsizei height, ' |
| 1902 'GLenumReadPixelFormat format, GLenumReadPixelType type, ' | 1902 'GLenumReadPixelFormat format, GLenumReadPixelType type, ' |
| 1903 'uint32 pixels_shm_id, uint32 pixels_shm_offset, ' | 1903 'uint32 pixels_shm_id, uint32 pixels_shm_offset, ' |
| 1904 'uint32 result_shm_id, uint32 result_shm_offset', | 1904 'uint32 result_shm_id, uint32 result_shm_offset, ' |
| 1905 'GLboolean async', |
| 1905 'result': ['uint32'], | 1906 'result': ['uint32'], |
| 1906 'defer_reads': True, | 1907 'defer_reads': True, |
| 1907 }, | 1908 }, |
| 1908 'RegisterSharedIdsCHROMIUM': { | 1909 'RegisterSharedIdsCHROMIUM': { |
| 1909 'type': 'Custom', | 1910 'type': 'Custom', |
| 1910 'decoder_func': 'DoRegisterSharedIdsCHROMIUM', | 1911 'decoder_func': 'DoRegisterSharedIdsCHROMIUM', |
| 1911 'impl_func': False, | 1912 'impl_func': False, |
| 1912 'expectation': False, | 1913 'expectation': False, |
| 1913 'immediate': False, | 1914 'immediate': False, |
| 1914 'extension': True, | 1915 'extension': True, |
| (...skipping 5876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7791 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") | 7792 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") |
| 7792 | 7793 |
| 7793 if gen.errors > 0: | 7794 if gen.errors > 0: |
| 7794 print "%d errors" % gen.errors | 7795 print "%d errors" % gen.errors |
| 7795 return 1 | 7796 return 1 |
| 7796 return 0 | 7797 return 0 |
| 7797 | 7798 |
| 7798 | 7799 |
| 7799 if __name__ == '__main__': | 7800 if __name__ == '__main__': |
| 7800 sys.exit(main(sys.argv[1:])) | 7801 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |