Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 2519603002: Add command buffer support for EXT_sRGB_write_control (Closed)
Patch Set: and without breaking compile Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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:]))
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698