OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 bool sample_alpha_to_coverage; | 27 bool sample_alpha_to_coverage; |
28 bool cached_sample_alpha_to_coverage; | 28 bool cached_sample_alpha_to_coverage; |
29 bool sample_coverage; | 29 bool sample_coverage; |
30 bool cached_sample_coverage; | 30 bool cached_sample_coverage; |
31 bool scissor_test; | 31 bool scissor_test; |
32 bool cached_scissor_test; | 32 bool cached_scissor_test; |
33 bool stencil_test; | 33 bool stencil_test; |
34 bool cached_stencil_test; | 34 bool cached_stencil_test; |
35 bool rasterizer_discard; | 35 bool rasterizer_discard; |
36 bool cached_rasterizer_discard; | 36 bool cached_rasterizer_discard; |
| 37 bool primitive_restart_fixed_index; |
| 38 bool cached_primitive_restart_fixed_index; |
37 }; | 39 }; |
38 | 40 |
39 GLfloat blend_color_red; | 41 GLfloat blend_color_red; |
40 GLfloat blend_color_green; | 42 GLfloat blend_color_green; |
41 GLfloat blend_color_blue; | 43 GLfloat blend_color_blue; |
42 GLfloat blend_color_alpha; | 44 GLfloat blend_color_alpha; |
43 GLenum blend_equation_rgb; | 45 GLenum blend_equation_rgb; |
44 GLenum blend_equation_alpha; | 46 GLenum blend_equation_alpha; |
45 GLenum blend_source_rgb; | 47 GLenum blend_source_rgb; |
46 GLenum blend_dest_rgb; | 48 GLenum blend_dest_rgb; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 if (enable_flags.cached_stencil_test == enable && !ignore_cached_state) | 153 if (enable_flags.cached_stencil_test == enable && !ignore_cached_state) |
152 return; | 154 return; |
153 enable_flags.cached_stencil_test = enable; | 155 enable_flags.cached_stencil_test = enable; |
154 break; | 156 break; |
155 case GL_RASTERIZER_DISCARD: | 157 case GL_RASTERIZER_DISCARD: |
156 if (enable_flags.cached_rasterizer_discard == enable && | 158 if (enable_flags.cached_rasterizer_discard == enable && |
157 !ignore_cached_state) | 159 !ignore_cached_state) |
158 return; | 160 return; |
159 enable_flags.cached_rasterizer_discard = enable; | 161 enable_flags.cached_rasterizer_discard = enable; |
160 break; | 162 break; |
| 163 case GL_PRIMITIVE_RESTART_FIXED_INDEX: |
| 164 if (enable_flags.cached_primitive_restart_fixed_index == enable && |
| 165 !ignore_cached_state) |
| 166 return; |
| 167 enable_flags.cached_primitive_restart_fixed_index = enable; |
| 168 break; |
161 default: | 169 default: |
162 NOTREACHED(); | 170 NOTREACHED(); |
163 return; | 171 return; |
164 } | 172 } |
165 if (enable) | 173 if (enable) |
166 glEnable(cap); | 174 glEnable(cap); |
167 else | 175 else |
168 glDisable(cap); | 176 glDisable(cap); |
169 } | 177 } |
170 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_AUTOGEN_H_ | 178 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_AUTOGEN_H_ |
OLD | NEW |