Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 1419733005: gpu: Add YCbCr 420v extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean-ups. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698