| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|     69   'GLintptr': 'long long int', |     69   'GLintptr': 'long long int', | 
|     70   'GLsizeiptr': 'long long int' |     70   'GLsizeiptr': 'long long int' | 
|     71 } |     71 } | 
|     72  |     72  | 
|     73 # Capabilites selected with glEnable |     73 # Capabilites selected with glEnable | 
|     74 _CAPABILITY_FLAGS = [ |     74 _CAPABILITY_FLAGS = [ | 
|     75   {'name': 'blend'}, |     75   {'name': 'blend'}, | 
|     76   {'name': 'cull_face'}, |     76   {'name': 'cull_face'}, | 
|     77   {'name': 'depth_test', 'state_flag': 'framebuffer_state_.clear_state_dirty'}, |     77   {'name': 'depth_test', 'state_flag': 'framebuffer_state_.clear_state_dirty'}, | 
|     78   {'name': 'dither', 'default': True}, |     78   {'name': 'dither', 'default': True}, | 
 |     79   {'name': 'framebuffer_srgb_ext', 'default': True, | 
 |     80    'extension_flag': 'ext_srgb_write_control'}, | 
|     79   {'name': 'polygon_offset_fill'}, |     81   {'name': 'polygon_offset_fill'}, | 
|     80   {'name': 'sample_alpha_to_coverage'}, |     82   {'name': 'sample_alpha_to_coverage'}, | 
|     81   {'name': 'sample_coverage'}, |     83   {'name': 'sample_coverage'}, | 
|     82   {'name': 'scissor_test'}, |     84   {'name': 'scissor_test'}, | 
|     83   {'name': 'stencil_test', |     85   {'name': 'stencil_test', | 
|     84    'state_flag': 'framebuffer_state_.clear_state_dirty'}, |     86    'state_flag': 'framebuffer_state_.clear_state_dirty'}, | 
|     85   {'name': 'rasterizer_discard', 'es3': True}, |     87   {'name': 'rasterizer_discard', 'es3': True}, | 
|     86   {'name': 'primitive_restart_fixed_index', 'es3': True}, |     88   {'name': 'primitive_restart_fixed_index', 'es3': True}, | 
|     87   {'name': 'multisample_ext', 'default': True, |     89   {'name': 'multisample_ext', 'default': True, | 
|     88    'extension_flag': 'ext_multisample_compatibility'}, |     90    'extension_flag': 'ext_multisample_compatibility'}, | 
| (...skipping 11094 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  11183   Format(gen.generated_cpp_filenames) |  11185   Format(gen.generated_cpp_filenames) | 
|  11184  |  11186  | 
|  11185   if gen.errors > 0: |  11187   if gen.errors > 0: | 
|  11186     print "%d errors" % gen.errors |  11188     print "%d errors" % gen.errors | 
|  11187     return 1 |  11189     return 1 | 
|  11188   return 0 |  11190   return 0 | 
|  11189  |  11191  | 
|  11190  |  11192  | 
|  11191 if __name__ == '__main__': |  11193 if __name__ == '__main__': | 
|  11192   sys.exit(main(sys.argv[1:])) |  11194   sys.exit(main(sys.argv[1:])) | 
| OLD | NEW |