diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-08-01 20:45:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 20:45:58 +0200 |
commit | f8761cf8c5233f75123a7245a1e6a0aa12e22160 (patch) | |
tree | c85031f115b088d6b60af6f7ad34a9ca9a64a134 /gfx/gl/GLContextProviderEGL.cpp | |
parent | e79f2ee69455df701e559c10f8a9408fe8870281 (diff) | |
parent | d84ee90be10b67358a2a2340041337aec0cf04d8 (diff) | |
download | UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.tar UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.tar.gz UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.tar.lz UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.tar.xz UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.zip |
Merge pull request #688 from janekptacijarabaci/about-support_WebGL-information_expand_1
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 |