summaryrefslogtreecommitdiffstats
path: root/gfx/gl/GLContextProviderEGL.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-08-01 20:45:58 +0200
committerGitHub <noreply@github.com>2018-08-01 20:45:58 +0200
commitf8761cf8c5233f75123a7245a1e6a0aa12e22160 (patch)
treec85031f115b088d6b60af6f7ad34a9ca9a64a134 /gfx/gl/GLContextProviderEGL.cpp
parente79f2ee69455df701e559c10f8a9408fe8870281 (diff)
parentd84ee90be10b67358a2a2340041337aec0cf04d8 (diff)
downloadUXP-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.cpp18
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