mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 13:50:25 +03:00
browser(chromium): revert swiftshader fixes (#6824)
References #6818, references #6390
This commit is contained in:
parent
17585a369e
commit
531d35f945
@ -1 +1 @@
|
||||
885250
|
||||
888113
|
||||
|
@ -92,8 +92,6 @@ function archive_compiled_chromium() {
|
||||
|
||||
if [[ $1 == "--compile-win"* ]]; then
|
||||
$COPY_COMMAND "${CR_CHECKOUT_PATH}/src/out/Default/"*.manifest "output/${CHROMIUM_FOLDER_NAME}/"
|
||||
# See https://github.com/microsoft/playwright/issues/6390
|
||||
node "${SCRIPT_PATH}/fix_windows_swiftshader.js" "output/${CHROMIUM_FOLDER_NAME}/vk_swiftshader_icd.json"
|
||||
fi
|
||||
|
||||
cd output
|
||||
|
@ -1,13 +0,0 @@
|
||||
// See https://github.com/microsoft/playwright/issues/6390
|
||||
const fs = require('fs');
|
||||
|
||||
const FILE_PATH = process.argv[2];
|
||||
if (!fs.existsSync(FILE_PATH) || !FILE_PATH.endsWith('.json'))
|
||||
return;
|
||||
|
||||
const json = JSON.parse(fs.readFileSync(FILE_PATH, 'utf8'));
|
||||
|
||||
if (json.ICD && json.ICD.library_path && json.ICD.library_path.startsWith('.\\')) {
|
||||
json.ICD.library_path = json.ICD.library_path.substring(2);
|
||||
fs.writeFileSync(FILE_PATH, JSON.stringify(json), 'utf8');
|
||||
}
|
Loading…
Reference in New Issue
Block a user