mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 13:45:36 +03:00
fix(chromium): enable gpu support in mac headless (#20418)
This commit is contained in:
parent
0c84d88127
commit
332dbc5bf6
@ -287,9 +287,13 @@ export class Chromium extends BrowserType {
|
||||
throw new Error('Arguments can not specify page to be opened');
|
||||
const chromeArguments = [...chromiumSwitches];
|
||||
|
||||
if (os.platform() === 'darwin') {
|
||||
// See https://github.com/microsoft/playwright/issues/7362
|
||||
if (os.platform() === 'darwin')
|
||||
chromeArguments.push('--enable-use-zoom-for-dsf=false');
|
||||
// See https://bugs.chromium.org/p/chromium/issues/detail?id=1407025.
|
||||
if (options.headless)
|
||||
chromeArguments.push('--use-angle');
|
||||
}
|
||||
|
||||
if (options.devtools)
|
||||
chromeArguments.push('--auto-open-devtools-for-tabs');
|
||||
|
Loading…
Reference in New Issue
Block a user