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 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1855 'GL_ALPHA32F_EXT', | 1855 'GL_ALPHA32F_EXT', |
1856 'GL_LUMINANCE32F_EXT', | 1856 'GL_LUMINANCE32F_EXT', |
1857 'GL_LUMINANCE_ALPHA32F_EXT', | 1857 'GL_LUMINANCE_ALPHA32F_EXT', |
1858 ], | 1858 ], |
1859 }, | 1859 }, |
1860 'ImageInternalFormat': { | 1860 'ImageInternalFormat': { |
1861 'type': 'GLenum', | 1861 'type': 'GLenum', |
1862 'valid': [ | 1862 'valid': [ |
1863 'GL_RGB', | 1863 'GL_RGB', |
1864 'GL_RGB_YUV_420_CHROMIUM', | 1864 'GL_RGB_YUV_420_CHROMIUM', |
| 1865 'GL_RGB_YCRCR_422_CHROMIUM', |
1865 'GL_RGBA', | 1866 'GL_RGBA', |
1866 ], | 1867 ], |
1867 }, | 1868 }, |
1868 'ImageUsage': { | 1869 'ImageUsage': { |
1869 'type': 'GLenum', | 1870 'type': 'GLenum', |
1870 'valid': [ | 1871 'valid': [ |
1871 'GL_MAP_CHROMIUM', | 1872 'GL_MAP_CHROMIUM', |
1872 'GL_SCANOUT_CHROMIUM' | 1873 'GL_SCANOUT_CHROMIUM' |
1873 ], | 1874 ], |
1874 }, | 1875 }, |
(...skipping 9178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11053 Format(gen.generated_cpp_filenames) | 11054 Format(gen.generated_cpp_filenames) |
11054 | 11055 |
11055 if gen.errors > 0: | 11056 if gen.errors > 0: |
11056 print "%d errors" % gen.errors | 11057 print "%d errors" % gen.errors |
11057 return 1 | 11058 return 1 |
11058 return 0 | 11059 return 0 |
11059 | 11060 |
11060 | 11061 |
11061 if __name__ == '__main__': | 11062 if __name__ == '__main__': |
11062 sys.exit(main(sys.argv[1:])) | 11063 sys.exit(main(sys.argv[1:])) |
OLD | NEW |