| 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 1890 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' | 1901 '// it is easier to specify the result going to some specific place\n' |
| 1902 '// that exactly fits the rectangle of pixels.\n', | 1902 '// that exactly fits the rectangle of pixels.\n', |
| 1903 'type': 'Custom', | 1903 'type': 'Custom', |
| 1904 'immediate': False, | 1904 'immediate': False, |
| 1905 'impl_func': False, | 1905 'impl_func': False, |
| 1906 'client_test': False, | 1906 'client_test': False, |
| 1907 'cmd_args': | 1907 'cmd_args': |
| 1908 'GLint x, GLint y, GLsizei width, GLsizei height, ' | 1908 'GLint x, GLint y, GLsizei width, GLsizei height, ' |
| 1909 'GLenumReadPixelFormat format, GLenumReadPixelType type, ' | 1909 'GLenumReadPixelFormat format, GLenumReadPixelType type, ' |
| 1910 'uint32 pixels_shm_id, uint32 pixels_shm_offset, ' | 1910 'uint32 pixels_shm_id, uint32 pixels_shm_offset, ' |
| 1911 'uint32 result_shm_id, uint32 result_shm_offset', | 1911 'uint32 result_shm_id, uint32 result_shm_offset, ' |
| 1912 'GLboolean async', |
| 1912 'result': ['uint32'], | 1913 'result': ['uint32'], |
| 1913 'defer_reads': True, | 1914 'defer_reads': True, |
| 1914 }, | 1915 }, |
| 1915 'RegisterSharedIdsCHROMIUM': { | 1916 'RegisterSharedIdsCHROMIUM': { |
| 1916 'type': 'Custom', | 1917 'type': 'Custom', |
| 1917 'decoder_func': 'DoRegisterSharedIdsCHROMIUM', | 1918 'decoder_func': 'DoRegisterSharedIdsCHROMIUM', |
| 1918 'impl_func': False, | 1919 'impl_func': False, |
| 1919 'expectation': False, | 1920 'expectation': False, |
| 1920 'immediate': False, | 1921 'immediate': False, |
| 1921 'extension': True, | 1922 'extension': True, |
| (...skipping 5862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7784 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") | 7785 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") |
| 7785 | 7786 |
| 7786 if gen.errors > 0: | 7787 if gen.errors > 0: |
| 7787 print "%d errors" % gen.errors | 7788 print "%d errors" % gen.errors |
| 7788 return 1 | 7789 return 1 |
| 7789 return 0 | 7790 return 0 |
| 7790 | 7791 |
| 7791 | 7792 |
| 7792 if __name__ == '__main__': | 7793 if __name__ == '__main__': |
| 7793 sys.exit(main(sys.argv[1:])) | 7794 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |