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 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1848 'GL_LUMINANCE32F_EXT', | 1848 'GL_LUMINANCE32F_EXT', |
1849 'GL_LUMINANCE_ALPHA32F_EXT', | 1849 'GL_LUMINANCE_ALPHA32F_EXT', |
1850 ], | 1850 ], |
1851 }, | 1851 }, |
1852 'ImageInternalFormat': { | 1852 'ImageInternalFormat': { |
1853 'type': 'GLenum', | 1853 'type': 'GLenum', |
1854 'valid': [ | 1854 'valid': [ |
1855 'GL_RGB', | 1855 'GL_RGB', |
1856 'GL_RGB_YUV_420_CHROMIUM', | 1856 'GL_RGB_YUV_420_CHROMIUM', |
1857 'GL_RGB_YCBCR_422_CHROMIUM', | 1857 'GL_RGB_YCBCR_422_CHROMIUM', |
| 1858 'GL_RGB_YCBCR_420V_CHROMIUM', |
1858 'GL_RGBA', | 1859 'GL_RGBA', |
1859 ], | 1860 ], |
1860 }, | 1861 }, |
1861 'ImageUsage': { | 1862 'ImageUsage': { |
1862 'type': 'GLenum', | 1863 'type': 'GLenum', |
1863 'valid': [ | 1864 'valid': [ |
1864 'GL_MAP_CHROMIUM', | 1865 'GL_MAP_CHROMIUM', |
1865 'GL_SCANOUT_CHROMIUM' | 1866 'GL_SCANOUT_CHROMIUM' |
1866 ], | 1867 ], |
1867 }, | 1868 }, |
(...skipping 9162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11030 Format(gen.generated_cpp_filenames) | 11031 Format(gen.generated_cpp_filenames) |
11031 | 11032 |
11032 if gen.errors > 0: | 11033 if gen.errors > 0: |
11033 print "%d errors" % gen.errors | 11034 print "%d errors" % gen.errors |
11034 return 1 | 11035 return 1 |
11035 return 0 | 11036 return 0 |
11036 | 11037 |
11037 | 11038 |
11038 if __name__ == '__main__': | 11039 if __name__ == '__main__': |
11039 sys.exit(main(sys.argv[1:])) | 11040 sys.exit(main(sys.argv[1:])) |
OLD | NEW |