mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: update gpu docs (#10562)
This commit is contained in:
parent
de09b058ba
commit
6f31c52217
@ -172,13 +172,13 @@ yum update nss -y
|
||||
|
||||
## Chrome headless disables GPU compositing
|
||||
|
||||
Chrome/Chromium requires `--use-gl=egl` to
|
||||
[enable GPU acceleration in headless mode](https://github.com/chromium/chromium/commit/19671359ae25aa1e30bde90f8ff92453eeaac2ba).
|
||||
Chrome/Chromium requires `--enable-gpu` to
|
||||
[enable GPU acceleration in headless mode](https://crbug.com/1416283).
|
||||
|
||||
```ts
|
||||
const browser = await puppeteer.launch({
|
||||
headless: true,
|
||||
args: ['--use-gl=egl'],
|
||||
args: ['--enable-gpu'],
|
||||
});
|
||||
```
|
||||
|
||||
|
@ -24,7 +24,7 @@ import {EventEmitter} from '../common/EventEmitter.js';
|
||||
import type {Target} from '../common/Target.js'; // TODO: move to ./api
|
||||
|
||||
import type {BrowserContext} from './BrowserContext.js';
|
||||
import type {Page} from './Page.js'; // TODO: move to ./api
|
||||
import type {Page} from './Page.js';
|
||||
|
||||
/**
|
||||
* BrowserContext options.
|
||||
|
Loading…
Reference in New Issue
Block a user