| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 } | 198 } |
| 199 | 199 |
| 200 ContextState::ContextState(FeatureInfo* feature_info, | 200 ContextState::ContextState(FeatureInfo* feature_info, |
| 201 ErrorStateClient* error_state_client, | 201 ErrorStateClient* error_state_client, |
| 202 Logger* logger) | 202 Logger* logger) |
| 203 : active_texture_unit(0), | 203 : active_texture_unit(0), |
| 204 bound_renderbuffer_valid(false), | 204 bound_renderbuffer_valid(false), |
| 205 pack_reverse_row_order(false), | 205 pack_reverse_row_order(false), |
| 206 ignore_cached_state(false), | 206 ignore_cached_state(false), |
| 207 fbo_binding_for_scissor_workaround_dirty(false), | 207 fbo_binding_for_scissor_workaround_dirty(false), |
| 208 emulating_rgb_with_rgba(false), |
| 208 feature_info_(feature_info), | 209 feature_info_(feature_info), |
| 209 error_state_(ErrorState::Create(error_state_client, logger)) { | 210 error_state_(ErrorState::Create(error_state_client, logger)) { |
| 210 Initialize(); | 211 Initialize(); |
| 211 } | 212 } |
| 212 | 213 |
| 213 ContextState::~ContextState() { | 214 ContextState::~ContextState() { |
| 214 } | 215 } |
| 215 | 216 |
| 216 void ContextState::RestoreTextureUnitBindings( | 217 void ContextState::RestoreTextureUnitBindings( |
| 217 GLuint unit, const ContextState* prev_state) const { | 218 GLuint unit, const ContextState* prev_state) const { |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 UpdateUnpackParameters(); | 627 UpdateUnpackParameters(); |
| 627 } | 628 } |
| 628 | 629 |
| 629 // Include the auto-generated part of this file. We split this because it means | 630 // Include the auto-generated part of this file. We split this because it means |
| 630 // we can easily edit the non-auto generated parts right here in this file | 631 // we can easily edit the non-auto generated parts right here in this file |
| 631 // instead of having to edit some template or the code generator. | 632 // instead of having to edit some template or the code generator. |
| 632 #include "gpu/command_buffer/service/context_state_impl_autogen.h" | 633 #include "gpu/command_buffer/service/context_state_impl_autogen.h" |
| 633 | 634 |
| 634 } // namespace gles2 | 635 } // namespace gles2 |
| 635 } // namespace gpu | 636 } // namespace gpu |
| OLD | NEW |