diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-08-01 08:58:59 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-08-01 08:58:59 +0200 |
commit | e7f7100ba6759f30295dbc49f819ebb9c4785298 (patch) | |
tree | 939f31b2484c41ec415e9eb56aee1c2934752e65 /gfx/gl/GLContextProviderGLX.cpp | |
parent | ddb2b976802181e05cb37a94480e9fb42ae6708a (diff) | |
download | UXP-e7f7100ba6759f30295dbc49f819ebb9c4785298.tar UXP-e7f7100ba6759f30295dbc49f819ebb9c4785298.tar.gz UXP-e7f7100ba6759f30295dbc49f819ebb9c4785298.tar.lz UXP-e7f7100ba6759f30295dbc49f819ebb9c4785298.tar.xz UXP-e7f7100ba6759f30295dbc49f819ebb9c4785298.zip |
Bug 1335296 - Expand about:support WebGL information
Diffstat (limited to 'gfx/gl/GLContextProviderGLX.cpp')
-rw-r--r-- | gfx/gl/GLContextProviderGLX.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gfx/gl/GLContextProviderGLX.cpp b/gfx/gl/GLContextProviderGLX.cpp index d804f95af..5560357e1 100644 --- a/gfx/gl/GLContextProviderGLX.cpp +++ b/gfx/gl/GLContextProviderGLX.cpp @@ -994,6 +994,27 @@ GLContextGLX::SwapBuffers() return true; } +void +GLContextGLX::GetWSIInfo(nsCString* const out) const +{ + Display* display = DefaultXDisplay(); + int screen = DefaultScreen(display); + + int majorVersion, minorVersion; + sGLXLibrary.xQueryVersion(display, &majorVersion, &minorVersion); + + out->Append(nsPrintfCString("GLX %u.%u", majorVersion, minorVersion)); + + out->AppendLiteral("\nGLX_VENDOR(client): "); + out->Append(sGLXLibrary.xGetClientString(display, LOCAL_GLX_VENDOR)); + + out->AppendLiteral("\nGLX_VENDOR(server): "); + out->Append(sGLXLibrary.xQueryServerString(display, screen, LOCAL_GLX_VENDOR)); + + out->AppendLiteral("\nExtensions: "); + out->Append(sGLXLibrary.xQueryExtensionsString(display, screen)); +} + bool GLContextGLX::OverrideDrawable(GLXDrawable drawable) { |