| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 """ | 33 """ |
| 34 | 34 |
| 35 _MOJO_EXPOSED_EXTENSIONS = ["CHROMIUM_bind_uniform_location", | 35 _MOJO_EXPOSED_EXTENSIONS = ["CHROMIUM_bind_uniform_location", |
| 36 "CHROMIUM_map_sub", | 36 "CHROMIUM_map_sub", |
| 37 "CHROMIUM_miscellaneous", | 37 "CHROMIUM_miscellaneous", |
| 38 "CHROMIUM_resize", | 38 "CHROMIUM_resize", |
| 39 "CHROMIUM_sync_point", | 39 "CHROMIUM_sync_point", |
| 40 "CHROMIUM_texture_mailbox", | 40 "CHROMIUM_texture_mailbox", |
| 41 "EXT_debug_marker", | 41 "EXT_debug_marker", |
| 42 "EXT_discard_framebuffer", |
| 42 "EXT_texture_storage", | 43 "EXT_texture_storage", |
| 43 "KHR_blend_equation_advanced", | 44 "KHR_blend_equation_advanced", |
| 44 "OES_vertex_array_object", | 45 "OES_vertex_array_object", |
| 45 "occlusion_query_EXT"] | 46 "occlusion_query_EXT"] |
| 46 | 47 |
| 47 | 48 |
| 48 # This string is copied directly out of the gl2.h file from GLES2.0 | 49 # This string is copied directly out of the gl2.h file from GLES2.0 |
| 49 # | 50 # |
| 50 # Edits: | 51 # Edits: |
| 51 # | 52 # |
| (...skipping 10689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10741 Format(gen.generated_cpp_filenames) | 10742 Format(gen.generated_cpp_filenames) |
| 10742 | 10743 |
| 10743 if gen.errors > 0: | 10744 if gen.errors > 0: |
| 10744 print "%d errors" % gen.errors | 10745 print "%d errors" % gen.errors |
| 10745 return 1 | 10746 return 1 |
| 10746 return 0 | 10747 return 0 |
| 10747 | 10748 |
| 10748 | 10749 |
| 10749 if __name__ == '__main__': | 10750 if __name__ == '__main__': |
| 10750 sys.exit(main(sys.argv[1:])) | 10751 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |