| 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 2116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2127 # id_mapping: A list of resource type names whose client side IDs need to be | 2127 # id_mapping: A list of resource type names whose client side IDs need to be |
| 2128 # mapped to service side IDs. This is only used for unsafe APIs. | 2128 # mapped to service side IDs. This is only used for unsafe APIs. |
| 2129 | 2129 |
| 2130 _FUNCTION_INFO = { | 2130 _FUNCTION_INFO = { |
| 2131 'ActiveTexture': { | 2131 'ActiveTexture': { |
| 2132 'decoder_func': 'DoActiveTexture', | 2132 'decoder_func': 'DoActiveTexture', |
| 2133 'unit_test': False, | 2133 'unit_test': False, |
| 2134 'impl_func': False, | 2134 'impl_func': False, |
| 2135 'client_test': False, | 2135 'client_test': False, |
| 2136 }, | 2136 }, |
| 2137 'ApplyScreenSpaceAntialiasingCHROMIUM': { |
| 2138 'decoder_func': 'DoApplyScreenSpaceAntialiasingCHROMIUM', |
| 2139 'extension_flag': 'chromium_screen_space_antialiasing', |
| 2140 'unit_test': False, |
| 2141 'client_test': False, |
| 2142 }, |
| 2137 'AttachShader': {'decoder_func': 'DoAttachShader'}, | 2143 'AttachShader': {'decoder_func': 'DoAttachShader'}, |
| 2138 'BindAttribLocation': { | 2144 'BindAttribLocation': { |
| 2139 'type': 'GLchar', | 2145 'type': 'GLchar', |
| 2140 'data_transfer_methods': ['bucket'], | 2146 'data_transfer_methods': ['bucket'], |
| 2141 'needs_size': True, | 2147 'needs_size': True, |
| 2142 }, | 2148 }, |
| 2143 'BindBuffer': { | 2149 'BindBuffer': { |
| 2144 'type': 'Bind', | 2150 'type': 'Bind', |
| 2145 'decoder_func': 'DoBindBuffer', | 2151 'decoder_func': 'DoBindBuffer', |
| 2146 'gen_func': 'GenBuffersARB', | 2152 'gen_func': 'GenBuffersARB', |
| (...skipping 8869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11016 Format(gen.generated_cpp_filenames) | 11022 Format(gen.generated_cpp_filenames) |
| 11017 | 11023 |
| 11018 if gen.errors > 0: | 11024 if gen.errors > 0: |
| 11019 print "%d errors" % gen.errors | 11025 print "%d errors" % gen.errors |
| 11020 return 1 | 11026 return 1 |
| 11021 return 0 | 11027 return 0 |
| 11022 | 11028 |
| 11023 | 11029 |
| 11024 if __name__ == '__main__': | 11030 if __name__ == '__main__': |
| 11025 sys.exit(main(sys.argv[1:])) | 11031 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |