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

@ -61,18 +61,6 @@ WebGLContext::Enable(GLenum cap)
gl->fEnable(cap);
}
static JS::Value
StringValue(JSContext* cx, const nsAString& str, ErrorResult& rv)
{
JSString* jsStr = JS_NewUCStringCopyN(cx, str.BeginReading(), str.Length());
if (!jsStr) {
rv.Throw(NS_ERROR_OUT_OF_MEMORY);
return JS::NullValue();
}
return JS::StringValue(jsStr);
}
bool
WebGLContext::GetStencilBits(GLint* const out_stencilBits)
{