mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-14 19:27:30 +09:00
Bug 1335296 - Expand about:support WebGL information
This commit is contained in:
parent
b266e5e349
commit
43c36e207f
25 changed files with 256 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue