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

Unified Diff: ui/gl/gl_implementation.cc

Issue 11266023: Make GL calls go through subclassable class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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_glx_api_implementation.cc ('k') | ui/gl/gl_implementation_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_implementation.cc
diff --git a/ui/gl/gl_implementation.cc b/ui/gl/gl_implementation.cc
index 0a10f224fce682138d50249b68425114b5db0322..a97a4df558a7983d46402fb822cb5faa478a7935 100644
--- a/ui/gl/gl_implementation.cc
+++ b/ui/gl/gl_implementation.cc
@@ -10,6 +10,7 @@
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/logging.h"
+#include "ui/gl/gl_bindings.h"
namespace gfx {
@@ -62,6 +63,25 @@ bool ExportsCoreFunctionsFromGetProcAddress(GLImplementation implementation) {
}
+GLApi* g_current_gl_context;
+OSMESAApi* g_current_osmesa_context;
+
+#if defined(OS_WIN)
+
+EGLApi* g_current_egl_context;
+WGLApi* g_current_wgl_context;
+
+#elif defined(USE_X11)
+
+EGLApi* g_current_egl_context;
+GLXApi* g_current_glx_context;
+
+#elif defined(OS_ANDROID)
+
+EGLApi* g_current_egl_context;
+
+#endif
+
GLImplementation GetNamedGLImplementation(const std::string& name) {
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kGLImplementationNamePairs); ++i) {
if (name == kGLImplementationNamePairs[i].name)
« no previous file with comments | « ui/gl/gl_glx_api_implementation.cc ('k') | ui/gl/gl_implementation_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698