chore: bump chromium to 5b340c815ce15ab2efcf277ed19e9 (master) (#22064)
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com> Co-authored-by: loc <andy@slack-corp.com> Co-authored-by: Robo <hop2deep@gmail.com> Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
This commit is contained in:
parent
3a331ffca6
commit
39baf68790
126 changed files with 1047 additions and 961 deletions
26
spec/fixtures/api/gpu-info.js
vendored
26
spec/fixtures/api/gpu-info.js
vendored
|
@ -1,17 +1,21 @@
|
|||
const { app } = require('electron')
|
||||
const { app, BrowserWindow } = require('electron')
|
||||
|
||||
app.commandLine.appendSwitch('--disable-software-rasterizer')
|
||||
|
||||
app.whenReady().then(() => {
|
||||
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)
|
||||
}
|
||||
)
|
||||
const w = new BrowserWindow({ show: false })
|
||||
w.webContents.once('did-finish-load', () => {
|
||||
app.getGPUInfo(infoType).then(
|
||||
(gpuInfo) => {
|
||||
console.log(JSON.stringify(gpuInfo))
|
||||
app.exit(0)
|
||||
},
|
||||
(error) => {
|
||||
console.error(error)
|
||||
app.exit(1)
|
||||
}
|
||||
)
|
||||
})
|
||||
w.loadURL('data:text/html;<canvas></canvas>')
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue