Skip to content

Commit 3dbee86

Browse files
authored
Add a GPU Internals entry to the View menu (#5550)
* Add a GPU Internals entry to the View menu * Disable devtools in the GPU internals window
1 parent 5d1a9ec commit 3dbee86

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,19 @@ function runApp() {
15151515
}
15161516
}
15171517
},
1518+
{
1519+
label: 'GPU Internals (chrome://gpu)',
1520+
click() {
1521+
const gpuWindow = new BrowserWindow({
1522+
show: true,
1523+
autoHideMenuBar: true,
1524+
webPreferences: {
1525+
devTools: false
1526+
}
1527+
})
1528+
gpuWindow.loadURL('chrome://gpu')
1529+
}
1530+
},
15181531
{ type: 'separator' },
15191532
{ role: 'resetzoom' },
15201533
{ role: 'resetzoom', accelerator: 'CmdOrCtrl+num0', visible: false },

0 commit comments

Comments
 (0)