ELECTRON-261: removed extra attributes

removed extra attributes in the config file as per PR suggestion.
This commit is contained in:
Vishwas Shashidhar 2018-02-06 17:35:06 +05:30
parent bbc2228365
commit 3c4ae0615e
2 changed files with 2 additions and 12 deletions

View File

@ -17,8 +17,6 @@
"customFlags": { "customFlags": {
"authServerWhitelist": "", "authServerWhitelist": "",
"authNegotiateDelegateWhitelist": "", "authNegotiateDelegateWhitelist": "",
"disableGpu": false, "disableGpu": false
"disableGpuCompositing": false,
"disableD3d11": false
} }
} }

View File

@ -138,17 +138,9 @@ function setChromeFlags() {
// to disable gpu which fixes the black screen issue observed on // to disable gpu which fixes the black screen issue observed on
// multiple monitors // multiple monitors
if (config.customFlags.disableGpu) { if (config.customFlags.disableGpu) {
log.send(logLevels.INFO, 'Setting disable gpu flag'); log.send(logLevels.INFO, 'Setting disable gpu, gpu compositing and d3d11 flags to true');
app.commandLine.appendSwitch("disable-gpu", true); app.commandLine.appendSwitch("disable-gpu", true);
}
if (config.customFlags.disableGpuCompositing) {
log.send(logLevels.INFO, 'Setting disable gpu compositing flag');
app.commandLine.appendSwitch("disable-gpu-compositing", true); app.commandLine.appendSwitch("disable-gpu-compositing", true);
}
if (config.customFlags.disableD3d11) {
log.send(logLevels.INFO, 'Setting disable d3d11 flag');
app.commandLine.appendSwitch("disable-d3d11", true); app.commandLine.appendSwitch("disable-d3d11", true);
} }