Skip to content

Commit

Permalink
docs: update gpu docs (#10562)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Jul 17, 2023
1 parent de09b05 commit 6f31c52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
});
```

Expand Down
2 changes: 1 addition & 1 deletion packages/puppeteer-core/src/api/Browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6f31c52

Please sign in to comment.