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

Unified Diff: ui/gl/gl_version_info.h

Issue 98643013: Take GL version and extensions correctly into account when binding functions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Accommodated changes in content tests Created 6 years, 11 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 | « ui/gl/gl_surface_win.cc ('k') | ui/gl/gl_version_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_version_info.h
diff --git a/ui/gl/gl_version_info.h b/ui/gl/gl_version_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..a28be77101eb0b3018ef67ef804953947d02b1f4
--- /dev/null
+++ b/ui/gl/gl_version_info.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2013 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_VERSION_INFO_H_
+#define UI_GL_GL_VERSION_INFO_H_
+
+#include <string>
+#include "base/basictypes.h"
+
+namespace gfx {
+
+struct GLVersionInfo {
+ explicit GLVersionInfo(const char* version_str);
+
+ // New flags, such as is_gl4_4 could be introduced as needed.
+ // For now, this level of granularity is enough.
+ bool is_es;
+ bool is_es1;
+ bool is_es2;
+ bool is_es3;
+
+ bool is_gl1;
+ bool is_gl2;
+ bool is_gl3;
+ bool is_gl4;
+
+private:
+ DISALLOW_COPY_AND_ASSIGN(GLVersionInfo);
+};
+
+} // namespace gfx
+
+#endif // UI_GL_GL_VERSION_INFO_H_
« no previous file with comments | « ui/gl/gl_surface_win.cc ('k') | ui/gl/gl_version_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698