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

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

Issue 11301006: automate more GL state handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // DO NOT EDIT!
8
9 // It is included by context_state.cc
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_
11 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_
12
13 ContextState::EnableFlags::EnableFlags()
14 : blend(false),
15 cull_face(false),
16 depth_test(false),
17 dither(true),
18 polygon_offset_fill(false),
19 sample_alpha_to_coverage(false),
20 sample_coverage(false),
21 scissor_test(false),
22 stencil_test(false) {
23 }
24
25 void ContextState::Initialize() {
26 blend_color_red = 0.0f;
27 blend_color_green = 0.0f;
28 blend_color_blue = 0.0f;
29 blend_color_alpha = 0.0f;
30 blend_equation_rgb = GL_FUNC_ADD;
31 blend_equation_alpha = GL_FUNC_ADD;
32 blend_source_rgb = GL_ONE;
33 blend_dest_rgb = GL_ZERO;
34 blend_source_alpha = GL_ONE;
35 blend_dest_alpha = GL_ZERO;
36 color_clear_red = 0.0f;
37 color_clear_green = 0.0f;
38 color_clear_blue = 0.0f;
39 color_clear_alpha = 0.0f;
40 depth_clear = 1.0f;
41 stencil_clear = 0;
42 color_mask_red = true;
43 color_mask_green = true;
44 color_mask_blue = true;
45 color_mask_alpha = true;
46 cull_mode = GL_BACK;
47 depth_func = GL_LESS;
48 depth_mask = true;
49 z_near = 0.0f;
50 z_far = 1.0f;
51 front_face = GL_CCW;
52 line_width = 1.0f;
53 polygon_offset_factor = 0.0f;
54 polygon_offset_units = 0.0f;
55 sample_coverage_value = 0.0f;
56 sample_coverage_invert = false;
57 scissor_x = 0.0f;
58 scissor_y = 0.0f;
59 scissor_width = 1.0f;
60 scissor_height = 1.0f;
61 stencil_front_func = GL_ALWAYS;
62 stencil_front_ref = 0;
63 stencil_front_mask = 0xFFFFFFFFU;
64 stencil_back_func = GL_ALWAYS;
65 stencil_back_ref = 0;
66 stencil_back_mask = 0xFFFFFFFFU;
67 stencil_front_writemask = 0xFFFFFFFFU;
68 stencil_back_writemask = 0xFFFFFFFFU;
69 stencil_front_fail_op = GL_KEEP;
70 stencil_front_z_fail_op = GL_KEEP;
71 stencil_front_z_pass_op = GL_KEEP;
72 stencil_back_fail_op = GL_KEEP;
73 stencil_back_z_fail_op = GL_KEEP;
74 stencil_back_z_pass_op = GL_KEEP;
75 viewport_x = 0.0f;
76 viewport_y = 0.0f;
77 viewport_width = 1.0f;
78 viewport_height = 1.0f;
79 }
80
81 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_
82
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698