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

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

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 rasterizer_discard;
36 bool cached_rasterizer_discard;
35 }; 37 };
36 38
37 GLfloat blend_color_red; 39 GLfloat blend_color_red;
38 GLfloat blend_color_green; 40 GLfloat blend_color_green;
39 GLfloat blend_color_blue; 41 GLfloat blend_color_blue;
40 GLfloat blend_color_alpha; 42 GLfloat blend_color_alpha;
41 GLenum blend_equation_rgb; 43 GLenum blend_equation_rgb;
42 GLenum blend_equation_alpha; 44 GLenum blend_equation_alpha;
43 GLenum blend_source_rgb; 45 GLenum blend_source_rgb;
44 GLenum blend_dest_rgb; 46 GLenum blend_dest_rgb;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 case GL_SCISSOR_TEST: 145 case GL_SCISSOR_TEST:
144 if (enable_flags.cached_scissor_test == enable && !ignore_cached_state) 146 if (enable_flags.cached_scissor_test == enable && !ignore_cached_state)
145 return; 147 return;
146 enable_flags.cached_scissor_test = enable; 148 enable_flags.cached_scissor_test = enable;
147 break; 149 break;
148 case GL_STENCIL_TEST: 150 case GL_STENCIL_TEST:
149 if (enable_flags.cached_stencil_test == enable && !ignore_cached_state) 151 if (enable_flags.cached_stencil_test == enable && !ignore_cached_state)
150 return; 152 return;
151 enable_flags.cached_stencil_test = enable; 153 enable_flags.cached_stencil_test = enable;
152 break; 154 break;
155 case GL_RASTERIZER_DISCARD:
156 if (enable_flags.cached_rasterizer_discard == enable &&
157 !ignore_cached_state)
158 return;
159 enable_flags.cached_rasterizer_discard = enable;
160 break;
153 default: 161 default:
154 NOTREACHED(); 162 NOTREACHED();
155 return; 163 return;
156 } 164 }
157 if (enable) 165 if (enable)
158 glEnable(cap); 166 glEnable(cap);
159 else 167 else
160 glDisable(cap); 168 glDisable(cap);
161 } 169 }
162 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_AUTOGEN_H_ 170 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils_unittest.cc ('k') | gpu/command_buffer/service/context_state_impl_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698