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

Unified Diff: gpu/command_buffer/service/context_state.h

Issue 12321068: Add GL State Restoring Functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_state.h
diff --git a/gpu/command_buffer/service/context_state.h b/gpu/command_buffer/service/context_state.h
index 18e8a368a9c9be0dd1c8f6788a4d2af40d90be79..ef797e3a441b4e09cc7d539d0ff6273e983e19b2 100644
--- a/gpu/command_buffer/service/context_state.h
+++ b/gpu/command_buffer/service/context_state.h
@@ -99,6 +99,14 @@ struct GPU_EXPORT ContextState {
void InitCapabilities() const;
void InitState() const;
+ void RestoreActiveTexture() const;
+ void RestoreAttribute(GLuint index) const;
+ void RestoreBufferBindings() const;
+ void RestoreGlobalState() const;
+ void RestoreProgramBindings() const;
+ void RestoreRenderbufferBindings() const;
+ void RestoreTextureUnitBindings(GLuint unit) const;
+
// Helper for getting cached state.
bool GetStateAsGLint(
GLenum pname, GLint* params, GLsizei* num_written) const;
« 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