Bug 1335296 - Expand about:support WebGL information

This commit is contained in:
janekptacijarabaci 2018-08-01 08:58:59 +02:00 • committed by Roy Tam
commit 43c36e207f
25 changed files with 256 additions and 29 deletions

View file

@ -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