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

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

Issue 2788793003: gpu: Support other buffer targets for ScopedBufferBinder (Closed)
Patch Set: Added support for other buffer targets Created 3 years, 8 months 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
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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_state.cc » ('j') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698