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 |
11 // It is included by context_state.cc | 11 // It is included by context_state.cc |
12 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_ | 12 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_ |
13 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_ | 13 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_ |
14 | 14 |
15 ContextState::EnableFlags::EnableFlags() | 15 ContextState::EnableFlags::EnableFlags() |
16 : blend(false), | 16 : blend(false), |
17 cull_face(false), | 17 cull_face(false), |
18 depth_test(false), | 18 depth_test(false), |
19 dither(true), | 19 dither(true), |
20 polygon_offset_fill(false), | 20 polygon_offset_fill(false), |
21 sample_alpha_to_coverage(false), | 21 sample_alpha_to_coverage(false), |
22 sample_coverage(false), | 22 sample_coverage(false), |
23 scissor_test(false), | 23 scissor_test(false), |
24 stencil_test(false) {} | 24 stencil_test(false) { |
| 25 } |
25 | 26 |
26 void ContextState::Initialize() { | 27 void ContextState::Initialize() { |
27 blend_color_red = 0.0f; | 28 blend_color_red = 0.0f; |
28 blend_color_green = 0.0f; | 29 blend_color_green = 0.0f; |
29 blend_color_blue = 0.0f; | 30 blend_color_blue = 0.0f; |
30 blend_color_alpha = 0.0f; | 31 blend_color_alpha = 0.0f; |
31 blend_equation_rgb = GL_FUNC_ADD; | 32 blend_equation_rgb = GL_FUNC_ADD; |
32 blend_equation_alpha = GL_FUNC_ADD; | 33 blend_equation_alpha = GL_FUNC_ADD; |
33 blend_source_rgb = GL_ONE; | 34 blend_source_rgb = GL_ONE; |
34 blend_dest_rgb = GL_ZERO; | 35 blend_dest_rgb = GL_ZERO; |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 *num_written = 1; | 945 *num_written = 1; |
945 if (params) { | 946 if (params) { |
946 params[0] = static_cast<GLfloat>(enable_flags.stencil_test); | 947 params[0] = static_cast<GLfloat>(enable_flags.stencil_test); |
947 } | 948 } |
948 return true; | 949 return true; |
949 default: | 950 default: |
950 return false; | 951 return false; |
951 } | 952 } |
952 } | 953 } |
953 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_ | 954 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_ |
OLD | NEW |