File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -234,12 +234,12 @@ def _set_chrome_options(
234
234
# using Chrome's built-in headless mode. See link for details:
235
235
# https://bugs.chromium.org/p/chromium/issues/detail?id=706008
236
236
chrome_options .add_argument ("--headless" )
237
- # if headless or disable_gpu:
238
- chrome_options .add_argument ("--disable-gpu" ) # (Now always on)
239
237
# if (headless and "linux" in PLATFORM) or no_sandbox:
240
238
chrome_options .add_argument ("--no-sandbox" ) # (Now always on)
241
239
if swiftshader :
242
240
chrome_options .add_argument ("--use-gl=swiftshader" )
241
+ else :
242
+ chrome_options .add_argument ("--disable-gpu" )
243
243
if "linux" in PLATFORM :
244
244
chrome_options .add_argument ("--disable-dev-shm-usage" )
245
245
return chrome_options
You can’t perform that action at this time.
0 commit comments