| Index: gpu/command_buffer/service/context_state_impl_autogen.h
|
| diff --git a/gpu/command_buffer/service/context_state_impl_autogen.h b/gpu/command_buffer/service/context_state_impl_autogen.h
|
| index 9a42ae1d6c2243410bf142b2016aa1f561b0575f..00cff32160a8933bed534cf1af1adaac586b7473 100644
|
| --- a/gpu/command_buffer/service/context_state_impl_autogen.h
|
| +++ b/gpu/command_buffer/service/context_state_impl_autogen.h
|
| @@ -53,6 +53,7 @@ void ContextState::Initialize() {
|
| hint_generate_mipmap = GL_DONT_CARE;
|
| hint_fragment_shader_derivative = GL_DONT_CARE;
|
| line_width = 1.0f;
|
| + matrix_mode = GL_MODELVIEW;
|
| pack_alignment = 4;
|
| unpack_alignment = 4;
|
| polygon_offset_factor = 0.0f;
|
| @@ -118,6 +119,8 @@ void ContextState::InitState() const {
|
| glHint(GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES,
|
| hint_fragment_shader_derivative);
|
| glLineWidth(line_width);
|
| + if (feature_info_->feature_flags().nv_path_rendering)
|
| + glMatrixMode(matrix_mode);
|
| glPixelStorei(GL_PACK_ALIGNMENT, pack_alignment);
|
| glPixelStorei(GL_UNPACK_ALIGNMENT, unpack_alignment);
|
| glPolygonOffset(polygon_offset_factor, polygon_offset_units);
|
| @@ -293,6 +296,12 @@ bool ContextState::GetStateAsGLint(GLenum pname,
|
| params[0] = static_cast<GLint>(line_width);
|
| }
|
| return true;
|
| + case GL_MATRIX_MODE:
|
| + *num_written = 1;
|
| + if (params) {
|
| + params[0] = static_cast<GLint>(matrix_mode);
|
| + }
|
| + return true;
|
| case GL_PACK_ALIGNMENT:
|
| *num_written = 1;
|
| if (params) {
|
| @@ -618,6 +627,12 @@ bool ContextState::GetStateAsGLfloat(GLenum pname,
|
| params[0] = static_cast<GLfloat>(line_width);
|
| }
|
| return true;
|
| + case GL_MATRIX_MODE:
|
| + *num_written = 1;
|
| + if (params) {
|
| + params[0] = static_cast<GLfloat>(matrix_mode);
|
| + }
|
| + return true;
|
| case GL_PACK_ALIGNMENT:
|
| *num_written = 1;
|
| if (params) {
|
|
|