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

Unified Diff: ui/gl/gl_implementation.h

Issue 15890002: Display GL window system binding information in about:gpu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
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_

Powered by Google App Engine
This is Rietveld 408576698