From 6f31c522176feca3ead39f279af8baa6f241b03b Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Mon, 17 Jul 2023 14:13:13 +0200 Subject: [PATCH] docs: update gpu docs (#10562) --- docs/troubleshooting.md | 6 +++--- packages/puppeteer-core/src/api/Browser.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 1c5f455b..c9c1a912 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -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'], }); ``` diff --git a/packages/puppeteer-core/src/api/Browser.ts b/packages/puppeteer-core/src/api/Browser.ts index 63f4766f..46623737 100644 --- a/packages/puppeteer-core/src/api/Browser.ts +++ b/packages/puppeteer-core/src/api/Browser.ts @@ -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.