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

Side by Side Diff: gpu/command_buffer/service/context_state_autogen.h

Issue 1000483002: Added GLES3 Capabilities to the Command Buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing some unnecessary code from a prior CL Created 5 years, 9 months 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
OLDNEW
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 14 matching lines...) Expand all
25 bool polygon_offset_fill; 25 bool polygon_offset_fill;
26 bool cached_polygon_offset_fill; 26 bool cached_polygon_offset_fill;
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 primitive_restart_fixed_index;
36 bool cached_primitive_restart_fixed_index;
37 bool rasterizer_discard;
38 bool cached_rasterizer_discard;
35 }; 39 };
36 40
37 GLfloat blend_color_red; 41 GLfloat blend_color_red;
38 GLfloat blend_color_green; 42 GLfloat blend_color_green;
39 GLfloat blend_color_blue; 43 GLfloat blend_color_blue;
40 GLfloat blend_color_alpha; 44 GLfloat blend_color_alpha;
41 GLenum blend_equation_rgb; 45 GLenum blend_equation_rgb;
42 GLenum blend_equation_alpha; 46 GLenum blend_equation_alpha;
43 GLenum blend_source_rgb; 47 GLenum blend_source_rgb;
44 GLenum blend_dest_rgb; 48 GLenum blend_dest_rgb;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 case GL_SCISSOR_TEST: 147 case GL_SCISSOR_TEST:
144 if (enable_flags.cached_scissor_test == enable && !ignore_cached_state) 148 if (enable_flags.cached_scissor_test == enable && !ignore_cached_state)
145 return; 149 return;
146 enable_flags.cached_scissor_test = enable; 150 enable_flags.cached_scissor_test = enable;
147 break; 151 break;
148 case GL_STENCIL_TEST: 152 case GL_STENCIL_TEST:
149 if (enable_flags.cached_stencil_test == enable && !ignore_cached_state) 153 if (enable_flags.cached_stencil_test == enable && !ignore_cached_state)
150 return; 154 return;
151 enable_flags.cached_stencil_test = enable; 155 enable_flags.cached_stencil_test = enable;
152 break; 156 break;
157 case GL_PRIMITIVE_RESTART_FIXED_INDEX:
158 if (enable_flags.cached_primitive_restart_fixed_index == enable &&
159 !ignore_cached_state)
160 return;
161 enable_flags.cached_primitive_restart_fixed_index = enable;
162 break;
163 case GL_RASTERIZER_DISCARD:
164 if (enable_flags.cached_rasterizer_discard == enable &&
165 !ignore_cached_state)
166 return;
167 enable_flags.cached_rasterizer_discard = enable;
168 break;
153 default: 169 default:
154 NOTREACHED(); 170 NOTREACHED();
155 return; 171 return;
156 } 172 }
157 if (enable) 173 if (enable)
158 glEnable(cap); 174 glEnable(cap);
159 else 175 else
160 glDisable(cap); 176 glDisable(cap);
161 } 177 }
162 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_AUTOGEN_H_ 178 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698