mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #2503 - Part 1: add CPU IS support flags to Navigator interface
This commit is contained in:
parent
2811d30051
commit
35d7a1fe5a
3 changed files with 18 additions and 0 deletions
|
|
@ -678,6 +678,18 @@ Navigator::CpuHasSSE2()
|
|||
return mozilla::supports_sse2();
|
||||
}
|
||||
|
||||
bool
|
||||
Navigator::CpuHasAVX()
|
||||
{
|
||||
return mozilla::supports_avx();
|
||||
}
|
||||
|
||||
bool
|
||||
Navigator::CpuHasAVX2()
|
||||
{
|
||||
return mozilla::supports_avx2();
|
||||
}
|
||||
|
||||
void
|
||||
Navigator::RefreshMIMEArray()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -173,6 +173,8 @@ public:
|
|||
bool JavaEnabled(ErrorResult& aRv);
|
||||
uint64_t HardwareConcurrency();
|
||||
bool CpuHasSSE2();
|
||||
bool CpuHasAVX();
|
||||
bool CpuHasAVX2();
|
||||
bool TaintEnabled()
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -211,6 +211,10 @@ partial interface Navigator {
|
|||
*/
|
||||
[ChromeOnly]
|
||||
readonly attribute boolean cpuHasSSE2;
|
||||
[ChromeOnly]
|
||||
readonly attribute boolean cpuHasAVX;
|
||||
[ChromeOnly]
|
||||
readonly attribute boolean cpuHasAVX2;
|
||||
};
|
||||
|
||||
// nsIDOMNavigatorDesktopNotification
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue