OLD | NEW |
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 #include "gpu/command_buffer/service/context_state.h" | 5 #include "gpu/command_buffer/service/context_state.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 | 10 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 215 |
216 ContextState::ContextState(FeatureInfo* feature_info, | 216 ContextState::ContextState(FeatureInfo* feature_info, |
217 ErrorStateClient* error_state_client, | 217 ErrorStateClient* error_state_client, |
218 Logger* logger) | 218 Logger* logger) |
219 : active_texture_unit(0), | 219 : active_texture_unit(0), |
220 bound_renderbuffer_valid(false), | 220 bound_renderbuffer_valid(false), |
221 pack_reverse_row_order(false), | 221 pack_reverse_row_order(false), |
222 ignore_cached_state(false), | 222 ignore_cached_state(false), |
223 fbo_binding_for_scissor_workaround_dirty(false), | 223 fbo_binding_for_scissor_workaround_dirty(false), |
224 framebuffer_srgb_(false), | 224 framebuffer_srgb_(false), |
| 225 max_vertex_attribs_(0), |
225 feature_info_(feature_info), | 226 feature_info_(feature_info), |
226 error_state_(ErrorState::Create(error_state_client, logger)) { | 227 error_state_(ErrorState::Create(error_state_client, logger)) { |
227 Initialize(); | 228 Initialize(); |
228 } | 229 } |
229 | 230 |
230 ContextState::~ContextState() { | 231 ContextState::~ContextState() { |
231 } | 232 } |
232 | 233 |
233 void ContextState::RestoreTextureUnitBindings( | 234 void ContextState::RestoreTextureUnitBindings( |
234 GLuint unit, const ContextState* prev_state) const { | 235 GLuint unit, const ContextState* prev_state) const { |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 UpdateUnpackParameters(); | 703 UpdateUnpackParameters(); |
703 } | 704 } |
704 | 705 |
705 // Include the auto-generated part of this file. We split this because it means | 706 // Include the auto-generated part of this file. We split this because it means |
706 // we can easily edit the non-auto generated parts right here in this file | 707 // we can easily edit the non-auto generated parts right here in this file |
707 // instead of having to edit some template or the code generator. | 708 // instead of having to edit some template or the code generator. |
708 #include "gpu/command_buffer/service/context_state_impl_autogen.h" | 709 #include "gpu/command_buffer/service/context_state_impl_autogen.h" |
709 | 710 |
710 } // namespace gles2 | 711 } // namespace gles2 |
711 } // namespace gpu | 712 } // namespace gpu |
OLD | NEW |