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/GLContextProviderEGL.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/GLContextProviderEGL.cpp')
-rw-r--r-- | gfx/gl/GLContextProviderEGL.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gfx/gl/GLContextProviderEGL.cpp b/gfx/gl/GLContextProviderEGL.cpp index 098662200..7979f3bf0 100644 --- a/gfx/gl/GLContextProviderEGL.cpp +++ b/gfx/gl/GLContextProviderEGL.cpp @@ -418,6 +418,24 @@ GLContextEGL::SwapBuffers() } } +void +GLContextEGL::GetWSIInfo(nsCString* const out) const +{ + out->AppendLiteral("EGL_VENDOR: "); + out->Append((const char*)sEGLLibrary.fQueryString(EGL_DISPLAY(), LOCAL_EGL_VENDOR)); + + out->AppendLiteral("\nEGL_VERSION: "); + out->Append((const char*)sEGLLibrary.fQueryString(EGL_DISPLAY(), LOCAL_EGL_VERSION)); + + out->AppendLiteral("\nEGL_EXTENSIONS: "); + out->Append((const char*)sEGLLibrary.fQueryString(EGL_DISPLAY(), LOCAL_EGL_EXTENSIONS)); + +#ifndef ANDROID // This query will crash some old android. + out->AppendLiteral("\nEGL_EXTENSIONS(nullptr): "); + out->Append((const char*)sEGLLibrary.fQueryString(nullptr, LOCAL_EGL_EXTENSIONS)); +#endif +} + // hold a reference to the given surface // for the lifetime of this context. void |