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

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

Issue 205843002: GPU: Only restore one texture unit in ScopedTextureBinder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mock. Created 6 years, 9 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <vector> 10 #include <vector>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 ~ContextState(); 97 ~ContextState();
98 98
99 void Initialize(); 99 void Initialize();
100 100
101 void RestoreState(const ContextState* prev_state) const; 101 void RestoreState(const ContextState* prev_state) const;
102 void InitCapabilities() const; 102 void InitCapabilities() const;
103 void InitState() const; 103 void InitState() const;
104 104
105 void RestoreActiveTexture() const; 105 void RestoreActiveTexture() const;
106 void RestoreAllTextureUnitBindings(const ContextState* prev_state) const; 106 void RestoreAllTextureUnitBindings(const ContextState* prev_state) const;
107 void RestoreActiveTextureUnitBinding(unsigned int target) const;
107 void RestoreAttribute(GLuint index) const; 108 void RestoreAttribute(GLuint index) const;
108 void RestoreBufferBindings() const; 109 void RestoreBufferBindings() const;
109 void RestoreGlobalState() const; 110 void RestoreGlobalState() const;
110 void RestoreProgramBindings() const; 111 void RestoreProgramBindings() const;
111 void RestoreRenderbufferBindings() const; 112 void RestoreRenderbufferBindings() const;
112 void RestoreTextureUnitBindings( 113 void RestoreTextureUnitBindings(
113 GLuint unit, const ContextState* prev_state) const; 114 GLuint unit, const ContextState* prev_state) const;
114 115
115 // Helper for getting cached state. 116 // Helper for getting cached state.
116 bool GetStateAsGLint( 117 bool GetStateAsGLint(
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 161
161 private: 162 private:
162 scoped_ptr<ErrorState> error_state_; 163 scoped_ptr<ErrorState> error_state_;
163 }; 164 };
164 165
165 } // namespace gles2 166 } // namespace gles2
166 } // namespace gpu 167 } // namespace gpu
167 168
168 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ 169 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
169 170
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698