feat: add app.isHardwareAccelerationEnabled() (#47614)

* feat: add app.isHardwareAccelerationEnabled()

* chore: address review feedback
This commit is contained in:
Shelley Vohr
2025-10-27 20:03:08 +01:00
committed by GitHub
parent 8f6ecd816b
commit b389377c63
4 changed files with 27 additions and 0 deletions

View File

@@ -1215,6 +1215,13 @@ Disables hardware acceleration for current app.
This method can only be called before app is ready.
### `app.isHardwareAccelerationEnabled()`
Returns `boolean` - whether hardware acceleration is currently disabled.
> [!NOTE]
> This information is only usable after the `gpu-info-update` event is emitted.
### `app.disableDomainBlockingFor3DAPIs()`
By default, Chromium disables 3D APIs (e.g. WebGL) until restart on a per