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

Unified Diff: gpu/command_buffer/service/gl_state_restorer_impl.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 | « gpu/command_buffer/service/context_state.cc ('k') | gpu/command_buffer/service/gl_state_restorer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..625d8300b3826d1703727d558a3ffce65b3bd701 100644
--- a/gpu/command_buffer/service/gl_state_restorer_impl.h
+++ b/gpu/command_buffer/service/gl_state_restorer_impl.h
@@ -12,6 +12,10 @@
#include "gpu/gpu_export.h"
#include "ui/gl/gl_state_restorer.h"
+namespace gfx {
+class DirtyTextureState;
+}
+
namespace gpu {
namespace gles2 {
class GLES2Decoder;
@@ -24,7 +28,8 @@ class GPU_EXPORT GLStateRestorerImpl : public gfx::GLStateRestorer {
virtual ~GLStateRestorerImpl();
virtual bool IsInitialized() OVERRIDE;
- virtual void RestoreState() OVERRIDE;
+ virtual void RestoreState(
+ const gfx::DirtyTextureState* dirty_texture_state) OVERRIDE;
virtual void RestoreAllTextureUnitBindings() OVERRIDE;
virtual void RestoreFramebufferBindings() OVERRIDE;
« no previous file with comments | « gpu/command_buffer/service/context_state.cc ('k') | gpu/command_buffer/service/gl_state_restorer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698