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

Unified Diff: ui/gl/gl_state_restorer.h

Issue 104833007: Restore only modified texture state during virtual context switches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup 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
« no previous file with comments | « ui/gl/gl_gl_api_implementation.cc ('k') | no next file » | 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 6d8791f3c16ac00c7e54ced91d7c1235cdf35f18..05f4ce82b0be8907cc3bdb172230436eac6701b4 100644
--- a/ui/gl/gl_state_restorer.h
+++ b/ui/gl/gl_state_restorer.h
@@ -10,6 +10,8 @@
namespace gfx {
+class DirtyTextureState;
+
// An interface for Restoring GL State.
// This will expand over time to provide an more optimizable implementation.
class GL_EXPORT GLStateRestorer {
@@ -18,7 +20,7 @@ class GL_EXPORT GLStateRestorer {
virtual ~GLStateRestorer();
virtual bool IsInitialized() = 0;
- virtual void RestoreState() = 0;
+ virtual void RestoreState(const DirtyTextureState* dirty_texture_state) = 0;
virtual void RestoreAllTextureUnitBindings() = 0;
virtual void RestoreFramebufferBindings() = 0;
« no previous file with comments | « ui/gl/gl_gl_api_implementation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698