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

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

Issue 1305153005: Add CHROMIUM_ycbcr_422_image extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698