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

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

Issue 118203002: During virtual context switches only restore texture units that have changed from the previous cont… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use the delta between the ContextStates to decide if we should bind a texture or not Created 7 years 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
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 8d5edcaea61d08c73810fd60d7c32ea1d2630af9..bb58c71f4850fcf4d513633186a7b570516ba707 100644
--- a/gpu/command_buffer/service/context_state.h
+++ b/gpu/command_buffer/service/context_state.h
@@ -98,18 +98,19 @@ struct GPU_EXPORT ContextState {
void Initialize();
- void RestoreState() const;
+ void RestoreState(const ContextState* prev_state) const;
void InitCapabilities() const;
void InitState() const;
void RestoreActiveTexture() const;
- void RestoreAllTextureUnitBindings() const;
+ void RestoreAllTextureUnitBindings(const ContextState* prev_state) const;
void RestoreAttribute(GLuint index) const;
void RestoreBufferBindings() const;
void RestoreGlobalState() const;
void RestoreProgramBindings() const;
void RestoreRenderbufferBindings() const;
- void RestoreTextureUnitBindings(GLuint unit) const;
+ void RestoreTextureUnitBindings(
+ GLuint unit, const ContextState* prev_state) const;
// Helper for getting cached state.
bool GetStateAsGLint(
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_state.cc » ('j') | gpu/command_buffer/service/context_state.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698