Index: ui/gl/gl_implementation.h |
diff --git a/ui/gl/gl_implementation.h b/ui/gl/gl_implementation.h |
index b3f8ff1224395da62b61a7c12b1f51a08c935c30..8fcee879b67588e00cc41945318652c192c52458 100644 |
--- a/ui/gl/gl_implementation.h |
+++ b/ui/gl/gl_implementation.h |
@@ -27,6 +27,12 @@ enum GLImplementation { |
kGLImplementationMockGL |
}; |
+struct GLWindowSystemBindingInfo { |
+ std::string vendor; |
+ std::string version; |
+ std::string extensions; |
+}; |
+ |
void GetAllowedGLImplementations(std::vector<GLImplementation>* impls); |
#if defined(OS_WIN) |
@@ -80,6 +86,10 @@ void* GetGLCoreProcAddress(const char* name); |
// Find an entry point in the current GL implementation. |
void* GetGLProcAddress(const char* name); |
+// Return information about the GL window system binding implementation (e.g., |
+// EGL, GLX, WGL). Returns true if the information was retrieved successfully. |
+GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info); |
+ |
} // namespace gfx |
#endif // UI_GL_GL_IMPLEMENTATION_H_ |