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 // This file contains the ContextState class. | 5 // This file contains the ContextState class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ |
8 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 void InitCapabilities(const ContextState* prev_state) const; | 210 void InitCapabilities(const ContextState* prev_state) const; |
211 void InitState(const ContextState* prev_state) const; | 211 void InitState(const ContextState* prev_state) const; |
212 | 212 |
213 void RestoreActiveTexture() const; | 213 void RestoreActiveTexture() const; |
214 void RestoreAllTextureUnitBindings(const ContextState* prev_state) const; | 214 void RestoreAllTextureUnitBindings(const ContextState* prev_state) const; |
215 void RestoreActiveTextureUnitBinding(unsigned int target) const; | 215 void RestoreActiveTextureUnitBinding(unsigned int target) const; |
216 void RestoreVertexAttribValues() const; | 216 void RestoreVertexAttribValues() const; |
217 void RestoreVertexAttribArrays( | 217 void RestoreVertexAttribArrays( |
218 const scoped_refptr<VertexAttribManager> attrib_manager) const; | 218 const scoped_refptr<VertexAttribManager> attrib_manager) const; |
219 void RestoreVertexAttribs() const; | 219 void RestoreVertexAttribs() const; |
220 void RestoreBufferBinding(unsigned int target) const; | |
221 void RestoreBufferBindings() const; | 220 void RestoreBufferBindings() const; |
222 void RestoreGlobalState(const ContextState* prev_state) const; | 221 void RestoreGlobalState(const ContextState* prev_state) const; |
223 void RestoreProgramSettings(const ContextState* prev_state, | 222 void RestoreProgramSettings(const ContextState* prev_state, |
224 bool restore_transform_feedback_bindings) const; | 223 bool restore_transform_feedback_bindings) const; |
225 void RestoreRenderbufferBindings(); | 224 void RestoreRenderbufferBindings(); |
226 void RestoreIndexedUniformBufferBindings(const ContextState* prev_state); | 225 void RestoreIndexedUniformBufferBindings(const ContextState* prev_state); |
227 void RestoreTextureUnitBindings( | 226 void RestoreTextureUnitBindings( |
228 GLuint unit, const ContextState* prev_state) const; | 227 GLuint unit, const ContextState* prev_state) const; |
229 | 228 |
230 void PushTextureDecompressionUnpackState() const; | 229 void PushTextureDecompressionUnpackState() const; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 GLfloat line_width_max_ = 1.0f; | 393 GLfloat line_width_max_ = 1.0f; |
395 | 394 |
396 FeatureInfo* feature_info_; | 395 FeatureInfo* feature_info_; |
397 std::unique_ptr<ErrorState> error_state_; | 396 std::unique_ptr<ErrorState> error_state_; |
398 }; | 397 }; |
399 | 398 |
400 } // namespace gles2 | 399 } // namespace gles2 |
401 } // namespace gpu | 400 } // namespace gpu |
402 | 401 |
403 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ | 402 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ |
OLD | NEW |