Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--in-process-gpu

What does --in-process-gpu do?

Run the GPU process as a thread in the browser process.

Usage

CLILaunch Chrome with --in-process-gpu using CLI

chrome --in-process-gpu

PuppeteerLaunch Chrome with --in-process-gpu using Puppeteer

const browser = await puppeteer.launch({
  args: ['--in-process-gpu']
});

PlaywrightLaunch Chrome with --in-process-gpu using Playwright

const browser = await chromium.launch({
  args: ['--in-process-gpu']
});

SeleniumLaunch Chrome with --in-process-gpu using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--in-process-gpu')

driver = webdriver.Chrome(options=options)