mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +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');
|
throw new Error('Arguments can not specify page to be opened');
|
||||||
const chromeArguments = [...chromiumSwitches];
|
const chromeArguments = [...chromiumSwitches];
|
||||||
|
|
||||||
// See https://github.com/microsoft/playwright/issues/7362
|
if (os.platform() === 'darwin') {
|
||||||
if (os.platform() === 'darwin')
|
// See https://github.com/microsoft/playwright/issues/7362
|
||||||
chromeArguments.push('--enable-use-zoom-for-dsf=false');
|
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)
|
if (options.devtools)
|
||||||
chromeArguments.push('--auto-open-devtools-for-tabs');
|
chromeArguments.push('--auto-open-devtools-for-tabs');
|
||||||
|
Loading…
Reference in New Issue
Block a user