diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index 92ef511eb2b..d41d239b5c0 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -414,6 +414,18 @@ export default class ElectronPlatform extends VectorBasePlatform { return this.ipcCall('setMinimizeToTrayEnabled', enabled); } + public supportsTogglingHardwareAcceleration(): boolean { + return true; + } + + public async getHardwareAccelerationEnabled(): Promise { + return this.ipcCall('getHardwareAccelerationEnabled'); + } + + public async setHardwareAccelerationEnabled(enabled: boolean): Promise { + return this.ipcCall('setHardwareAccelerationEnabled', enabled); + } + async canSelfUpdate(): Promise { const feedUrl = await this.ipcCall('getUpdateFeedUrl'); return Boolean(feedUrl);