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

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

Issue 11275120: Virtual GL (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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 // It is included by context_state.cc 9 // It is included by context_state.cc
10 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_ 10 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 stencil_front_z_pass_op = GL_KEEP; 71 stencil_front_z_pass_op = GL_KEEP;
72 stencil_back_fail_op = GL_KEEP; 72 stencil_back_fail_op = GL_KEEP;
73 stencil_back_z_fail_op = GL_KEEP; 73 stencil_back_z_fail_op = GL_KEEP;
74 stencil_back_z_pass_op = GL_KEEP; 74 stencil_back_z_pass_op = GL_KEEP;
75 viewport_x = 0; 75 viewport_x = 0;
76 viewport_y = 0; 76 viewport_y = 0;
77 viewport_width = 1; 77 viewport_width = 1;
78 viewport_height = 1; 78 viewport_height = 1;
79 } 79 }
80 80
81 void ContextState::InitCapabilities() { 81 void ContextState::InitCapabilities() const {
82 EnableDisable(GL_BLEND, enable_flags.blend); 82 EnableDisable(GL_BLEND, enable_flags.blend);
83 EnableDisable(GL_CULL_FACE, enable_flags.cull_face); 83 EnableDisable(GL_CULL_FACE, enable_flags.cull_face);
84 EnableDisable(GL_DEPTH_TEST, enable_flags.depth_test); 84 EnableDisable(GL_DEPTH_TEST, enable_flags.depth_test);
85 EnableDisable(GL_DITHER, enable_flags.dither); 85 EnableDisable(GL_DITHER, enable_flags.dither);
86 EnableDisable(GL_POLYGON_OFFSET_FILL, enable_flags.polygon_offset_fill); 86 EnableDisable(GL_POLYGON_OFFSET_FILL, enable_flags.polygon_offset_fill);
87 EnableDisable( 87 EnableDisable(
88 GL_SAMPLE_ALPHA_TO_COVERAGE, enable_flags.sample_alpha_to_coverage); 88 GL_SAMPLE_ALPHA_TO_COVERAGE, enable_flags.sample_alpha_to_coverage);
89 EnableDisable(GL_SAMPLE_COVERAGE, enable_flags.sample_coverage); 89 EnableDisable(GL_SAMPLE_COVERAGE, enable_flags.sample_coverage);
90 EnableDisable(GL_SCISSOR_TEST, enable_flags.scissor_test); 90 EnableDisable(GL_SCISSOR_TEST, enable_flags.scissor_test);
91 EnableDisable(GL_STENCIL_TEST, enable_flags.stencil_test); 91 EnableDisable(GL_STENCIL_TEST, enable_flags.stencil_test);
92 } 92 }
93 93
94 void ContextState::InitState() { 94 void ContextState::InitState() const {
95 glBlendColor( 95 glBlendColor(
96 blend_color_red, blend_color_green, blend_color_blue, blend_color_alpha); 96 blend_color_red, blend_color_green, blend_color_blue, blend_color_alpha);
97 glBlendEquationSeparate(blend_equation_rgb, blend_equation_alpha); 97 glBlendEquationSeparate(blend_equation_rgb, blend_equation_alpha);
98 glBlendFuncSeparate( 98 glBlendFuncSeparate(
99 blend_source_rgb, blend_dest_rgb, blend_source_alpha, blend_dest_alpha); 99 blend_source_rgb, blend_dest_rgb, blend_source_alpha, blend_dest_alpha);
100 glClearColor( 100 glClearColor(
101 color_clear_red, color_clear_green, color_clear_blue, color_clear_alpha); 101 color_clear_red, color_clear_green, color_clear_blue, color_clear_alpha);
102 glClearDepth(depth_clear); 102 glClearDepth(depth_clear);
103 glClearStencil(stencil_clear); 103 glClearStencil(stencil_clear);
104 glColorMask( 104 glColorMask(
(...skipping 16 matching lines...) Expand all
121 glStencilOpSeparate( 121 glStencilOpSeparate(
122 GL_FRONT, stencil_front_fail_op, stencil_front_z_fail_op, 122 GL_FRONT, stencil_front_fail_op, stencil_front_z_fail_op,
123 stencil_front_z_pass_op); 123 stencil_front_z_pass_op);
124 glStencilOpSeparate( 124 glStencilOpSeparate(
125 GL_BACK, stencil_back_fail_op, stencil_back_z_fail_op, 125 GL_BACK, stencil_back_fail_op, stencil_back_z_fail_op,
126 stencil_back_z_pass_op); 126 stencil_back_z_pass_op);
127 glViewport(viewport_x, viewport_y, viewport_width, viewport_height); 127 glViewport(viewport_x, viewport_y, viewport_width, viewport_height);
128 } 128 }
129 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_ 129 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_IMPL_AUTOGEN_H_
130 130
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698