Index: ui/gl/init/gl_factory.h |
diff --git a/ui/gl/init/gl_factory.h b/ui/gl/init/gl_factory.h |
index 11646011bcd1de3a476837f1f5d97fad1c7dc335..003b56d8a28237228cef191cfc8998aeae82e7df 100644 |
--- a/ui/gl/init/gl_factory.h |
+++ b/ui/gl/init/gl_factory.h |
@@ -5,6 +5,8 @@ |
#ifndef UI_GL_INIT_GL_FACTORY_H_ |
#define UI_GL_INIT_GL_FACTORY_H_ |
+#include <vector> |
+ |
#include "base/memory/ref_counted.h" |
#include "ui/gfx/geometry/size.h" |
#include "ui/gfx/native_widget_types.h" |
@@ -20,6 +22,10 @@ class GLSurface; |
namespace init { |
+// Returns a list of allowed GL implementations. The default implementation will |
+// be the first item. |
+GL_INIT_EXPORT std::vector<GLImplementation> GetAllowedGLImplementations(); |
+ |
// Initializes GL bindings. |
GL_INIT_EXPORT bool InitializeGLOneOff(); |
@@ -33,6 +39,11 @@ GL_INIT_EXPORT bool InitializeGLOneOffImplementation(GLImplementation impl, |
// Clears GL bindings and resets GL implementation. |
GL_INIT_EXPORT void ClearGLBindings(); |
+// Return information about the GL window system binding implementation (e.g., |
+// EGL, GLX, WGL). Returns true if the information was retrieved successfully. |
+GL_INIT_EXPORT bool GetGLWindowSystemBindingInfo( |
+ GLWindowSystemBindingInfo* info); |
+ |
// Creates a GL context that is compatible with the given surface. |
// |share_group|, if non-NULL, is a group of contexts which the internally |
// created OpenGL context shares textures and other resources. |