| 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 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1253 'GL_CURRENT_QUERY_EXT', | 1253 'GL_CURRENT_QUERY_EXT', |
| 1254 ], | 1254 ], |
| 1255 }, | 1255 }, |
| 1256 'QueryTarget': { | 1256 'QueryTarget': { |
| 1257 'type': 'GLenum', | 1257 'type': 'GLenum', |
| 1258 'valid': [ | 1258 'valid': [ |
| 1259 'GL_ANY_SAMPLES_PASSED_EXT', | 1259 'GL_ANY_SAMPLES_PASSED_EXT', |
| 1260 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', | 1260 'GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT', |
| 1261 'GL_COMMANDS_ISSUED_CHROMIUM', | 1261 'GL_COMMANDS_ISSUED_CHROMIUM', |
| 1262 'GL_LATENCY_QUERY_CHROMIUM', | 1262 'GL_LATENCY_QUERY_CHROMIUM', |
| 1263 'GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM', | |
| 1264 'GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM', | 1263 'GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM', |
| 1265 'GL_COMMANDS_COMPLETED_CHROMIUM', | 1264 'GL_COMMANDS_COMPLETED_CHROMIUM', |
| 1266 ], | 1265 ], |
| 1267 }, | 1266 }, |
| 1268 'RenderBufferParameter': { | 1267 'RenderBufferParameter': { |
| 1269 'type': 'GLenum', | 1268 'type': 'GLenum', |
| 1270 'valid': [ | 1269 'valid': [ |
| 1271 'GL_RENDERBUFFER_RED_SIZE', | 1270 'GL_RENDERBUFFER_RED_SIZE', |
| 1272 'GL_RENDERBUFFER_GREEN_SIZE', | 1271 'GL_RENDERBUFFER_GREEN_SIZE', |
| 1273 'GL_RENDERBUFFER_BLUE_SIZE', | 1272 'GL_RENDERBUFFER_BLUE_SIZE', |
| (...skipping 2746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4020 'chromium': True, | 4019 'chromium': True, |
| 4021 }, | 4020 }, |
| 4022 'TraceEndCHROMIUM': { | 4021 'TraceEndCHROMIUM': { |
| 4023 'impl_func': False, | 4022 'impl_func': False, |
| 4024 'client_test': False, | 4023 'client_test': False, |
| 4025 'decoder_func': 'DoTraceEndCHROMIUM', | 4024 'decoder_func': 'DoTraceEndCHROMIUM', |
| 4026 'unit_test': False, | 4025 'unit_test': False, |
| 4027 'extension': True, | 4026 'extension': True, |
| 4028 'chromium': True, | 4027 'chromium': True, |
| 4029 }, | 4028 }, |
| 4030 'AsyncTexImage2DCHROMIUM': { | |
| 4031 'type': 'Manual', | |
| 4032 'data_transfer_methods': ['shm'], | |
| 4033 'client_test': False, | |
| 4034 'cmd_args': 'GLenumTextureTarget target, GLint level, ' | |
| 4035 'GLintTextureInternalFormat internalformat, ' | |
| 4036 'GLsizei width, GLsizei height, ' | |
| 4037 'GLintTextureBorder border, ' | |
| 4038 'GLenumTextureFormat format, GLenumPixelType type, ' | |
| 4039 'const void* pixels, ' | |
| 4040 'uint32_t async_upload_token, ' | |
| 4041 'void* sync_data', | |
| 4042 'extension': True, | |
| 4043 'chromium': True, | |
| 4044 'trace_level': 2, | |
| 4045 }, | |
| 4046 'AsyncTexSubImage2DCHROMIUM': { | |
| 4047 'type': 'Manual', | |
| 4048 'data_transfer_methods': ['shm'], | |
| 4049 'client_test': False, | |
| 4050 'cmd_args': 'GLenumTextureTarget target, GLint level, ' | |
| 4051 'GLint xoffset, GLint yoffset, ' | |
| 4052 'GLsizei width, GLsizei height, ' | |
| 4053 'GLenumTextureFormat format, GLenumPixelType type, ' | |
| 4054 'const void* data, ' | |
| 4055 'uint32_t async_upload_token, ' | |
| 4056 'void* sync_data', | |
| 4057 'extension': True, | |
| 4058 'chromium': True, | |
| 4059 'trace_level': 2, | |
| 4060 }, | |
| 4061 'WaitAsyncTexImage2DCHROMIUM': { | |
| 4062 'type': 'Manual', | |
| 4063 'client_test': False, | |
| 4064 'extension': True, | |
| 4065 'chromium': True, | |
| 4066 'trace_level': 1, | |
| 4067 }, | |
| 4068 'WaitAllAsyncTexImage2DCHROMIUM': { | |
| 4069 'type': 'Manual', | |
| 4070 'client_test': False, | |
| 4071 'extension': True, | |
| 4072 'chromium': True, | |
| 4073 'trace_level': 1, | |
| 4074 }, | |
| 4075 'DiscardFramebufferEXT': { | 4029 'DiscardFramebufferEXT': { |
| 4076 'type': 'PUTn', | 4030 'type': 'PUTn', |
| 4077 'count': 1, | 4031 'count': 1, |
| 4078 'decoder_func': 'DoDiscardFramebufferEXT', | 4032 'decoder_func': 'DoDiscardFramebufferEXT', |
| 4079 'unit_test': False, | 4033 'unit_test': False, |
| 4080 'client_test': False, | 4034 'client_test': False, |
| 4081 'extension_flag': 'ext_discard_framebuffer', | 4035 'extension_flag': 'ext_discard_framebuffer', |
| 4082 'trace_level': 2, | 4036 'trace_level': 2, |
| 4083 }, | 4037 }, |
| 4084 'LoseContextCHROMIUM': { | 4038 'LoseContextCHROMIUM': { |
| (...skipping 6969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11054 Format(gen.generated_cpp_filenames) | 11008 Format(gen.generated_cpp_filenames) |
| 11055 | 11009 |
| 11056 if gen.errors > 0: | 11010 if gen.errors > 0: |
| 11057 print "%d errors" % gen.errors | 11011 print "%d errors" % gen.errors |
| 11058 return 1 | 11012 return 1 |
| 11059 return 0 | 11013 return 0 |
| 11060 | 11014 |
| 11061 | 11015 |
| 11062 if __name__ == '__main__': | 11016 if __name__ == '__main__': |
| 11063 sys.exit(main(sys.argv[1:])) | 11017 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |