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

Unified Diff: gpu/command_buffer/service/gl_state_restorer_impl.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/gl_state_restorer_impl.h
diff --git a/gpu/command_buffer/service/gl_state_restorer_impl.h b/gpu/command_buffer/service/gl_state_restorer_impl.h
index 032bf7251867059477a30c649d4324d863360af4..d375894eae82e081ebece8d989e3cf17ab8d7d22 100644
--- a/gpu/command_buffer/service/gl_state_restorer_impl.h
+++ b/gpu/command_buffer/service/gl_state_restorer_impl.h
@@ -14,6 +14,7 @@
namespace gpu {
namespace gles2 {
+class ContextState;
class GLES2Decoder;
}
@@ -23,8 +24,9 @@ class GPU_EXPORT GLStateRestorerImpl : public gfx::GLStateRestorer {
explicit GLStateRestorerImpl(base::WeakPtr<gles2::GLES2Decoder> decoder);
virtual ~GLStateRestorerImpl();
+ virtual const gles2::ContextState* GetContextState() OVERRIDE;
virtual bool IsInitialized() OVERRIDE;
- virtual void RestoreState() OVERRIDE;
+ virtual void RestoreState(const gles2::ContextState* prev_state) OVERRIDE;
virtual void RestoreAllTextureUnitBindings() OVERRIDE;
virtual void RestoreFramebufferBindings() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698