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

Unified Diff: ui/gl/gl_state_restorer.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_mock.h ('k') | ui/gl/scoped_binders.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_state_restorer.h
diff --git a/ui/gl/gl_state_restorer.h b/ui/gl/gl_state_restorer.h
index 5c142140aaf2691cf01b51f0f43dbaa5df475c51..7edc9989134ed3996ba7b2b1dacae435ff944f65 100644
--- a/ui/gl/gl_state_restorer.h
+++ b/ui/gl/gl_state_restorer.h
@@ -20,6 +20,7 @@ class GL_EXPORT GLStateRestorer {
virtual bool IsInitialized() = 0;
virtual void RestoreState(const GLStateRestorer* prev_state) = 0;
virtual void RestoreAllTextureUnitBindings() = 0;
+ virtual void RestoreActiveTextureUnitBinding(unsigned int target) = 0;
virtual void RestoreFramebufferBindings() = 0;
DISALLOW_COPY_AND_ASSIGN(GLStateRestorer);
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_mock.h ('k') | ui/gl/scoped_binders.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698