| 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 os | 8 import os |
| 9 import os.path | 9 import os.path |
| 10 import sys | 10 import sys |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 'GL_DONT_CARE', | 582 'GL_DONT_CARE', |
| 583 ], | 583 ], |
| 584 }, | 584 }, |
| 585 'PixelStore': { | 585 'PixelStore': { |
| 586 'type': 'GLenum', | 586 'type': 'GLenum', |
| 587 'valid': [ | 587 'valid': [ |
| 588 'GL_PACK_ALIGNMENT', | 588 'GL_PACK_ALIGNMENT', |
| 589 'GL_UNPACK_ALIGNMENT', | 589 'GL_UNPACK_ALIGNMENT', |
| 590 'GL_UNPACK_FLIP_Y_CHROMIUM', | 590 'GL_UNPACK_FLIP_Y_CHROMIUM', |
| 591 'GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM', | 591 'GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM', |
| 592 'GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM', |
| 592 ], | 593 ], |
| 593 'invalid': [ | 594 'invalid': [ |
| 594 'GL_PACK_SWAP_BYTES', | 595 'GL_PACK_SWAP_BYTES', |
| 595 'GL_UNPACK_SWAP_BYTES', | 596 'GL_UNPACK_SWAP_BYTES', |
| 596 ], | 597 ], |
| 597 }, | 598 }, |
| 598 'PixelStoreAlignment': { | 599 'PixelStoreAlignment': { |
| 599 'type': 'GLint', | 600 'type': 'GLint', |
| 600 'valid': [ | 601 'valid': [ |
| 601 '1', | 602 '1', |
| (...skipping 5658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6260 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") | 6261 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") |
| 6261 | 6262 |
| 6262 if gen.errors > 0: | 6263 if gen.errors > 0: |
| 6263 print "%d errors" % gen.errors | 6264 print "%d errors" % gen.errors |
| 6264 return 1 | 6265 return 1 |
| 6265 return 0 | 6266 return 0 |
| 6266 | 6267 |
| 6267 | 6268 |
| 6268 if __name__ == '__main__': | 6269 if __name__ == '__main__': |
| 6269 sys.exit(main(sys.argv[1:])) | 6270 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |