全平台软件渲染Webkit

Merge pull request  from Pluto/qt6
This commit is contained in:
shenmo 2024-08-19 08:30:19 +00:00 committed by Gitee
commit 85ce641fef
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -75,7 +75,7 @@ void crashHandler(int sig) {
gatherInfo(popen("LANG=en_US.UTF-8 lsb_release -a", "r"), logFile, "Distribution info");
gatherInfo(popen("LANG=en_US.UTF-8 lscpu", "r"), logFile, "All CPU Info");
gatherInfo(popen("LANG=en_US.UTF-8 free -h | grep Mem | awk '{print $2}'", "r"), logFile, "Memory Size");
logFile << "Error: signal " << sig << ":\n";
@ -144,6 +144,8 @@ int main(int argc, char *argv[])
// 浏览器开启 GPU 支持
// qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-features=UseModernMediaControls");
// qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-web-security");
// 全平台软件渲染Webkit
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu");
#if defined (__sw_64__) || defined (__loongarch__)
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--no-sandbox");
#endif