Add the option to disable hardware acceleration (#8655)

This commit is contained in:
James Salter
2022-05-23 11:23:40 +01:00
committed by GitHub
parent 1535ff0d6c
commit 4f9598361f
3 changed files with 43 additions and 0 deletions
+12
View File
@@ -291,6 +291,18 @@ export default abstract class BasePlatform {
throw new Error("Unimplemented");
}
public supportsTogglingHardwareAcceleration(): boolean {
return false;
}
public async getHardwareAccelerationEnabled(): Promise<boolean> {
return true;
}
public async setHardwareAccelerationEnabled(enabled: boolean): Promise<void> {
throw new Error("Unimplemented");
}
/**
* Get our platform specific EventIndexManager.
*