WebKit2.Settings:hardware-acceleration-policy
Description: Reference for property WebKit2.Settings:hardware-acceleration-policy

### Property

# WebKit2 Settings:hardware-acceleration-policy

#### Declaration

    property hardware-acceleration-policy: WebKit2.HardwareAccelerationPolicy [ read, write, construct ]

#### Description [src]

The `WebKitHardwareAccelerationPolicy` to decide how to enable and disable hardware acceleration. The default value `WEBKIT_HARDWARE_ACCELERATION_POLICY_ON_DEMAND` enables the hardware acceleration when the web contents request it. It’s possible to enforce hardware acceleration to be always enabled by using `WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS`. And it’s also possible to disable it completely using `WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER`. Note that 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.

Type: | `WebKitHardwareAccelerationPolicy`
Available since: | 2.16

Setter method | `webkit_settings_set_hardware_acceleration_policy()`
Getter method | `webkit_settings_get_hardware_acceleration_policy()`

#### Flags

Readable | yes
Writable | yes
Construct | yes
Construct only | no