Changeset 211798 in webkit


Ignore:
Timestamp:
Feb 7, 2017 1:34:18 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r211277 - [GTK] Stop forcing accelerated compositing by default
https://bugs.webkit.org/show_bug.cgi?id=167492

Reviewed by Žan Doberšek.

We are now ready to bring back the on demand accelerated compositing mode with the threaded
compositor. Unfortunately, having AC always enabled brought a lot of issues for many people. Not only it
requires a lot more memory but also caused rendering issues (or even nothing rendered at all) with some graphics
drivers. People started to use WEBKIT_DISABLE_COMPOSITING_MODE as a workaround, but that was not expected to be
used by users. So, entering/leaving AC when required by web contents is not actually the solution but a huge
improvement for many people. If we are eventually ready to force AC mode again, we'll change this again. Note
that we still have WEBKIT_DISABLE_COMPOSITING_MODE, but now also WEBKIT_FORCE_COMPOSITING_MODE for testing and debugging.

  • UIProcess/gtk/WebPreferencesGtk.cpp:

(WebKit::WebPreferences::platformInitializeStore):

Location:
releases/WebKitGTK/webkit-2.14/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.14/Source/WebKit2/ChangeLog

    r211797 r211798  
     12017-01-27  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Stop forcing accelerated compositing by default
     4        https://bugs.webkit.org/show_bug.cgi?id=167492
     5
     6        Reviewed by Žan Doberšek.
     7
     8        We are now ready to bring back the on demand accelerated compositing mode with the threaded
     9        compositor. Unfortunately, having AC always enabled brought a lot of issues for many people. Not only it
     10        requires a lot more memory but also caused rendering issues (or even nothing rendered at all) with some graphics
     11        drivers. People started to use WEBKIT_DISABLE_COMPOSITING_MODE as a workaround, but that was not expected to be
     12        used by users. So, entering/leaving AC when required by web contents is not actually the solution but a huge
     13        improvement for many people. If we are eventually ready to force AC mode again, we'll change this again. Note
     14        that we still have WEBKIT_DISABLE_COMPOSITING_MODE, but now also WEBKIT_FORCE_COMPOSITING_MODE for testing and debugging.
     15
     16        * UIProcess/gtk/WebPreferencesGtk.cpp:
     17        (WebKit::WebPreferences::platformInitializeStore):
     18
    1192017-01-30  Carlos Garcia Campos  <cgarcia@igalia.com>
    220
  • releases/WebKitGTK/webkit-2.14/Source/WebKit2/UIProcess/gtk/WebPreferencesGtk.cpp

    r211786 r211798  
    4545    setAcceleratedCompositingEnabled(false);
    4646#else
    47 #if USE(COORDINATED_GRAPHICS_THREADED)
    48     setForceCompositingMode(true);
    49 #else
    50     const char* force_compositing = getenv("WEBKIT_FORCE_COMPOSITING_MODE");
    51     if (force_compositing && strcmp(force_compositing, "0"))
     47    const char* forceCompositing = getenv("WEBKIT_FORCE_COMPOSITING_MODE");
     48    if (forceCompositing && strcmp(forceCompositing, "0"))
    5249        setForceCompositingMode(true);
    53 #endif
    5450
    55     const char* disable_compositing = getenv("WEBKIT_DISABLE_COMPOSITING_MODE");
    56     if (disable_compositing && strcmp(disable_compositing, "0")) {
     51    const char* disableCompositing = getenv("WEBKIT_DISABLE_COMPOSITING_MODE");
     52    if (disableCompositing && strcmp(disableCompositing, "0")) {
    5753        setAcceleratedCompositingEnabled(false);
    5854        return;
Note: See TracChangeset for help on using the changeset viewer.