| 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 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1942 'GL_LUMINANCE32F_EXT', | 1942 'GL_LUMINANCE32F_EXT', |
| 1943 'GL_LUMINANCE_ALPHA32F_EXT', | 1943 'GL_LUMINANCE_ALPHA32F_EXT', |
| 1944 ], | 1944 ], |
| 1945 }, | 1945 }, |
| 1946 'ImageInternalFormat': { | 1946 'ImageInternalFormat': { |
| 1947 'type': 'GLenum', | 1947 'type': 'GLenum', |
| 1948 'valid': [ | 1948 'valid': [ |
| 1949 'GL_RGB', | 1949 'GL_RGB', |
| 1950 'GL_RGB_YUV_420_CHROMIUM', | 1950 'GL_RGB_YUV_420_CHROMIUM', |
| 1951 'GL_RGB_YCBCR_422_CHROMIUM', | 1951 'GL_RGB_YCBCR_422_CHROMIUM', |
| 1952 'GL_RGB_YCBCR_420V_CHROMIUM', |
| 1952 'GL_RGBA', | 1953 'GL_RGBA', |
| 1953 ], | 1954 ], |
| 1954 }, | 1955 }, |
| 1955 'ImageUsage': { | 1956 'ImageUsage': { |
| 1956 'type': 'GLenum', | 1957 'type': 'GLenum', |
| 1957 'valid': [ | 1958 'valid': [ |
| 1958 'GL_READ_WRITE_CHROMIUM', | 1959 'GL_READ_WRITE_CHROMIUM', |
| 1959 ], | 1960 ], |
| 1960 }, | 1961 }, |
| 1961 'ValueBufferTarget': { | 1962 'ValueBufferTarget': { |
| (...skipping 9240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11202 Format(gen.generated_cpp_filenames) | 11203 Format(gen.generated_cpp_filenames) |
| 11203 | 11204 |
| 11204 if gen.errors > 0: | 11205 if gen.errors > 0: |
| 11205 print "%d errors" % gen.errors | 11206 print "%d errors" % gen.errors |
| 11206 return 1 | 11207 return 1 |
| 11207 return 0 | 11208 return 0 |
| 11208 | 11209 |
| 11209 | 11210 |
| 11210 if __name__ == '__main__': | 11211 if __name__ == '__main__': |
| 11211 sys.exit(main(sys.argv[1:])) | 11212 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |