Skip to content

Commit

Permalink
[GTK4] Disable threaded rendering by default
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=247719

Reviewed by Miguel Gomez.

Cairo is not thread safe and threaded rendering is causing some crashes
when building with GTK4.

* Source/WebCore/platform/graphics/nicosia/NicosiaPaintingEngine.cpp:
(Nicosia::PaintingEngine::create):

Canonical link: https://commits.webkit.org/256526@main
  • Loading branch information
carlosgcampos committed Nov 10, 2022
1 parent 58159b6 commit b97318e
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -37,11 +37,7 @@ namespace Nicosia {
std::unique_ptr<PaintingEngine> PaintingEngine::create()
{
#if (ENABLE(DEVELOPER_MODE) && PLATFORM(WPE)) || USE(GTK4)
#if USE(GTK4)
unsigned numThreads = 4;
#else
unsigned numThreads = 0;
#endif
if (const char* numThreadsEnv = getenv("WEBKIT_NICOSIA_PAINTING_THREADS")) {
if (sscanf(numThreadsEnv, "%u", &numThreads) == 1) {
if (numThreads > 8) {
Expand Down

0 comments on commit b97318e

Please sign in to comment.