| Index: ui/gl/gl_glx_api_implementation.cc
|
| diff --git a/ui/gl/gl_glx_api_implementation.cc b/ui/gl/gl_glx_api_implementation.cc
|
| index f8e75a2cb08b1838bfcea8df0e7ca1c4b4ea134d..4a43534ec78370e21e9d9dd36ffcd17b057507ce 100644
|
| --- a/ui/gl/gl_glx_api_implementation.cc
|
| +++ b/ui/gl/gl_glx_api_implementation.cc
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "ui/gl/gl_glx_api_implementation.h"
|
| +#include "ui/gl/gl_implementation.h"
|
|
|
| namespace gfx {
|
|
|
| @@ -64,6 +65,25 @@ void RealGLXApi::Initialize(DriverGLX* driver) {
|
| TraceGLXApi::~TraceGLXApi() {
|
| }
|
|
|
| +bool GetGLWindowSystemBindingInfoGLX(GLWindowSystemBindingInfo* info) {
|
| + Display* display = glXGetCurrentDisplay();
|
| + const int kDefaultScreen = 0;
|
| + const char* vendor =
|
| + glXQueryServerString(display, kDefaultScreen, GLX_VENDOR);
|
| + const char* version =
|
| + glXQueryServerString(display, kDefaultScreen, GLX_VERSION);
|
| + const char* extensions =
|
| + glXQueryServerString(display, kDefaultScreen, GLX_EXTENSIONS);
|
| + *info = GLWindowSystemBindingInfo();
|
| + if (vendor)
|
| + info->vendor = vendor;
|
| + if (version)
|
| + info->version = version;
|
| + if (extensions)
|
| + info->extensions = extensions;
|
| + return true;
|
| +}
|
| +
|
| } // namespace gfx
|
|
|
|
|
|
|