Settings.hardwareAccelerationPolicy

Get hardwareAccelerationPolicy property.

  1. webkit.types.HardwareAccelerationPolicy hardwareAccelerationPolicy [@property getter]
    class Settings
    @property
    hardwareAccelerationPolicy
    ()
  2. webkit.types.HardwareAccelerationPolicy hardwareAccelerationPolicy [@property setter]

Return Value

Type: webkit.types.HardwareAccelerationPolicy

The #WebKitHardwareAccelerationPolicy to decide how to enable and disable hardware acceleration. Disabling hardware acceleration might cause some websites to not render correctly or consume more CPU.

Note that changing this setting might not be possible if hardware acceleration is not supported by the hardware or the system. In that case, you can get the value to know the actual policy being used, but changing the setting will not have any effect.