Rewrite GPUInfo tests for linux and update `getGPUInfo` functionality for linux. `basic` and `complete` GPUInfo is same for linux.
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			357 B
			
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			357 B
			
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const { app } = require('electron')
 | 
						|
 | 
						|
app.commandLine.appendSwitch('--disable-software-rasterizer')
 | 
						|
 | 
						|
app.on('ready', () => {
 | 
						|
  const infoType = process.argv.pop()
 | 
						|
  app.getGPUInfo(infoType).then(
 | 
						|
    (gpuInfo) => {
 | 
						|
      console.log(JSON.stringify(gpuInfo))
 | 
						|
      app.exit(0)
 | 
						|
    },
 | 
						|
    (error) => {
 | 
						|
      console.error(error)
 | 
						|
      app.exit(1)
 | 
						|
    }
 | 
						|
  )
 | 
						|
})
 |