void WebGLContext::GetQueryParameter(JSContext*, const WebGLQuery& query, GLenum pname, JS::MutableHandleValue retval) { const FuncScope funcScope(*this, "getQueryParameter"); retval.setNull(); if (IsContextLost()) return; if (!ValidateObject("query", query)) return; query.GetQueryParameter(pname, retval); }
void WebGLContext::GetQueryParameter(JSContext*, const WebGLQuery& query, GLenum pname, JS::MutableHandleValue retval, const char* funcName) { if (!funcName) { funcName = "getQueryParameter"; } retval.setNull(); if (IsContextLost()) return; if (!ValidateObject(funcName, query)) return; query.GetQueryParameter(pname, retval); }