| 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
|
|
|
|
|
|
|