Index: ui/gl/gl_implementation.h |
diff --git a/ui/gl/gl_implementation.h b/ui/gl/gl_implementation.h |
index c813fcb96ce49881132ef629d114c8a86536acb0..212978270d6f13a38e36429daac67bd2521f05ca 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_ |