Chrome Flags Reference

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

--use-gl

What does --use-gl do?

Select which implementation of GL the GPU process should use. Options are: desktop: whatever desktop OpenGL the user has installed (Linux and Mac default). egl: whatever EGL / GLES2 the user has installed (Windows default - actually ANGLE). swiftshader: The SwiftShader software renderer.

Usage

CLILaunch Chrome with --use-gl using CLI

chrome --use-gl

PuppeteerLaunch Chrome with --use-gl using Puppeteer

const browser = await puppeteer.launch({
  args: ['--use-gl']
});

PlaywrightLaunch Chrome with --use-gl using Playwright

const browser = await chromium.launch({
  args: ['--use-gl']
});

SeleniumLaunch Chrome with --use-gl using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--use-gl')

driver = webdriver.Chrome(options=options)

Build Conditions

ENABLE_VULKAN && \