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

Unified Diff: ui/gl/gl_egl_api_implementation.cc

Issue 15890002: Display GL window system binding information in about:gpu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typo in unit test. 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
« no previous file with comments | « ui/gl/gl_egl_api_implementation.h ('k') | ui/gl/gl_glx_api_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_egl_api_implementation.cc
diff --git a/ui/gl/gl_egl_api_implementation.cc b/ui/gl/gl_egl_api_implementation.cc
index ba3e9cf923ce9a909015b6e18d2add3ac043b8a4..43aa138a3f83c8e5f2301e530c8b5f2b8a844a0d 100644
--- a/ui/gl/gl_egl_api_implementation.cc
+++ b/ui/gl/gl_egl_api_implementation.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "ui/gl/gl_egl_api_implementation.h"
+#include "ui/gl/gl_implementation.h"
namespace gfx {
@@ -64,6 +65,21 @@ void RealEGLApi::Initialize(DriverEGL* driver) {
TraceEGLApi::~TraceEGLApi() {
}
+bool GetGLWindowSystemBindingInfoEGL(GLWindowSystemBindingInfo* info) {
+ EGLDisplay display = eglGetCurrentDisplay();
+ const char* vendor = eglQueryString(display, EGL_VENDOR);
+ const char* version = eglQueryString(display, EGL_VERSION);
+ const char* extensions = eglQueryString(display, EGL_EXTENSIONS);
+ *info = GLWindowSystemBindingInfo();
+ if (vendor)
+ info->vendor = vendor;
+ if (version)
+ info->version = version;
+ if (extensions)
+ info->extensions = extensions;
+ return true;
+}
+
} // namespace gfx
« no previous file with comments | « ui/gl/gl_egl_api_implementation.h ('k') | ui/gl/gl_glx_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698