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

Unified Diff: ui/gl/gl_state_restorer.h

Issue 2762833003: gpu: Use decoder state restoration for scoped_binders (Closed)
Patch Set: Fixed MediaColorTest failures on macOS Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_state_restorer.h
diff --git a/ui/gl/gl_state_restorer.h b/ui/gl/gl_state_restorer.h
index bac532a33aebb8619cced594427c7c6dd051ca26..93c281d815cecc1116cfa8cd1fe526dcd39aef5f 100644
--- a/ui/gl/gl_state_restorer.h
+++ b/ui/gl/gl_state_restorer.h
@@ -26,9 +26,13 @@ class GL_EXPORT GLStateRestorer {
virtual bool IsInitialized() = 0;
virtual void RestoreState(const GLStateRestorer* prev_state) = 0;
virtual void RestoreAllTextureUnitBindings() = 0;
+ virtual void RestoreActiveTexture() = 0;
virtual void RestoreActiveTextureUnitBinding(unsigned int target) = 0;
virtual void RestoreAllExternalTextureBindingsIfNeeded() = 0;
virtual void RestoreFramebufferBindings() = 0;
+ virtual void RestoreProgramBindings() = 0;
+ virtual void RestoreBufferBinding(unsigned int target) = 0;
+ virtual void RestoreVertexAttribArray(unsigned int index) = 0;
virtual void PauseQueries() = 0;
virtual void ResumeQueries() = 0;

Powered by Google App Engine
This is Rietveld 408576698