RTC-13931 Disable D3D11 by default

This commit is contained in:
sbenmoussati 2023-03-21 21:02:46 +01:00 committed by Salah Benmoussati
parent 66900b0aab
commit cae0c8b2f7
2 changed files with 7 additions and 7 deletions

View File

@ -111,8 +111,8 @@ describe('chrome flags', () => {
}); });
const spy = jest.spyOn(app.commandLine, 'appendSwitch'); const spy = jest.spyOn(app.commandLine, 'appendSwitch');
setChromeFlags(); setChromeFlags();
expect(spy).nthCalledWith(5, 'disable-renderer-backgrounding', 'true'); expect(spy).nthCalledWith(6, 'disable-renderer-backgrounding', 'true');
expect(spy).not.nthCalledWith(6); expect(spy).not.nthCalledWith(7);
}); });
it('should set `disable-renderer-backgrounding` chrome flag correctly when cloud config PMP setting is ENABLED', () => { it('should set `disable-renderer-backgrounding` chrome flag correctly when cloud config PMP setting is ENABLED', () => {
@ -145,8 +145,8 @@ describe('chrome flags', () => {
}); });
const spy = jest.spyOn(app.commandLine, 'appendSwitch'); const spy = jest.spyOn(app.commandLine, 'appendSwitch');
setChromeFlags(); setChromeFlags();
expect(spy).nthCalledWith(5, 'disable-renderer-backgrounding', 'true'); expect(spy).nthCalledWith(6, 'disable-renderer-backgrounding', 'true');
expect(spy).not.nthCalledWith(6); expect(spy).not.nthCalledWith(7);
}); });
it('should set `disable-renderer-backgrounding` chrome flag when PMP is ENABLED', () => { it('should set `disable-renderer-backgrounding` chrome flag when PMP is ENABLED', () => {
@ -167,8 +167,8 @@ describe('chrome flags', () => {
}); });
const spy = jest.spyOn(app.commandLine, 'appendSwitch'); const spy = jest.spyOn(app.commandLine, 'appendSwitch');
setChromeFlags(); setChromeFlags();
expect(spy).nthCalledWith(5, 'disable-renderer-backgrounding', 'true'); expect(spy).nthCalledWith(6, 'disable-renderer-backgrounding', 'true');
expect(spy).not.nthCalledWith(6); expect(spy).not.nthCalledWith(7);
}); });
describe('`isDevEnv`', () => { describe('`isDevEnv`', () => {

View File

@ -42,7 +42,7 @@ export const setChromeFlags = () => {
flagsConfig.customFlags.authNegotiateDelegateWhitelist, flagsConfig.customFlags.authNegotiateDelegateWhitelist,
'auth-server-whitelist': flagsConfig.customFlags.authServerWhitelist, 'auth-server-whitelist': flagsConfig.customFlags.authServerWhitelist,
'disable-background-timer-throttling': 'true', 'disable-background-timer-throttling': 'true',
'disable-d3d11': flagsConfig.disableGpu || null, 'disable-d3d11': true,
'disable-gpu': flagsConfig.disableGpu || null, 'disable-gpu': flagsConfig.disableGpu || null,
'disable-gpu-compositing': flagsConfig.disableGpu || null, 'disable-gpu-compositing': flagsConfig.disableGpu || null,
'enable-blink-features': 'RTCInsertableStreams', 'enable-blink-features': 'RTCInsertableStreams',