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

Unified Diff: ui/gl/gl_state_restorer.h

Issue 11275120: Virtual GL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
new file mode 100644
index 0000000000000000000000000000000000000000..8366a7a7f2b76dd2bb951d188fd858ee6ea4a993
--- /dev/null
+++ b/ui/gl/gl_state_restorer.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_GL_GL_STATE_RESTORER_H_
+#define UI_GL_GL_STATE_RESTORER_H_
+
+#include "base/basictypes.h"
+#include "ui/gl/gl_export.h"
+
+namespace gfx {
+
+// An interface for Restoring GL State.
+// This will expand over time to provide an more optimizable implementation.
+class GL_EXPORT GLStateRestorer {
+ public:
+ GLStateRestorer();
+ virtual ~GLStateRestorer();
+
+ virtual void RestoreState() = 0;
+
+ DISALLOW_COPY_AND_ASSIGN(GLStateRestorer);
+};
+
+} // namespace gfx
+
+#endif // UI_GL_GL_STATE_RESTORER_H_

Powered by Google App Engine
This is Rietveld 408576698