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

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: Move yuv_textures to image GL state. 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 1879 matching lines...) Expand 10 before | Expand all | Expand 10 after
1890 'GL_LUMINANCE32F_EXT', 1890 'GL_LUMINANCE32F_EXT',
1891 'GL_LUMINANCE_ALPHA32F_EXT', 1891 'GL_LUMINANCE_ALPHA32F_EXT',
1892 ], 1892 ],
1893 }, 1893 },
1894 'ImageInternalFormat': { 1894 'ImageInternalFormat': {
1895 'type': 'GLenum', 1895 'type': 'GLenum',
1896 'valid': [ 1896 'valid': [
1897 'GL_RGB', 1897 'GL_RGB',
1898 'GL_RGB_YUV_420_CHROMIUM', 1898 'GL_RGB_YUV_420_CHROMIUM',
1899 'GL_RGB_YCBCR_422_CHROMIUM', 1899 'GL_RGB_YCBCR_422_CHROMIUM',
1900 'GL_RGB_YCBCR_420V_CHROMIUM',
1900 'GL_RGBA', 1901 'GL_RGBA',
1901 ], 1902 ],
1902 }, 1903 },
1903 'ImageUsage': { 1904 'ImageUsage': {
1904 'type': 'GLenum', 1905 'type': 'GLenum',
1905 'valid': [ 1906 'valid': [
1906 'GL_READ_WRITE_CHROMIUM', 1907 'GL_READ_WRITE_CHROMIUM',
1907 ], 1908 ],
1908 }, 1909 },
1909 'ValueBufferTarget': { 1910 'ValueBufferTarget': {
(...skipping 9202 matching lines...) Expand 10 before | Expand all | Expand 10 after
11112 Format(gen.generated_cpp_filenames) 11113 Format(gen.generated_cpp_filenames)
11113 11114
11114 if gen.errors > 0: 11115 if gen.errors > 0:
11115 print "%d errors" % gen.errors 11116 print "%d errors" % gen.errors
11116 return 1 11117 return 1
11117 return 0 11118 return 0
11118 11119
11119 11120
11120 if __name__ == '__main__': 11121 if __name__ == '__main__':
11121 sys.exit(main(sys.argv[1:])) 11122 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698