Changeset 154728 in webkit


Ignore:
Timestamp:
Aug 28, 2013 2:34:50 AM (11 years ago)
Author:
zandobersek@gmail.com
Message:

[GTK][WK2] Disable accelerated compositing under Wayland
https://bugs.webkit.org/show_bug.cgi?id=120347

Reviewed by Martin Robinson.

Accelerated compositing is not yet supported under the Wayland display protocol,
so it should be disabled. Since it is enabled by default and the GTK WK2 API does
not provide any way to change that, it's enough to disable it when attaching the
WebKitSettings object to the WebPageGroup if running under Wayland.

  • UIProcess/API/gtk/WebKitWebViewGroup.cpp:

(webkitWebViewGroupAttachSettingsToPageGroup):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r154724 r154728  
     12013-08-28  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [GTK][WK2] Disable accelerated compositing under Wayland
     4        https://bugs.webkit.org/show_bug.cgi?id=120347
     5
     6        Reviewed by Martin Robinson.
     7
     8        Accelerated compositing is not yet supported under the Wayland display protocol,
     9        so it should be disabled. Since it is enabled by default and the GTK WK2 API does
     10        not provide any way to change that, it's enough to disable it when attaching the
     11        WebKitSettings object to the WebPageGroup if running under Wayland.
     12
     13        * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
     14        (webkitWebViewGroupAttachSettingsToPageGroup):
     15
    1162013-08-28  Alexandre Abreu  <alexandre.abreu@canonical.com>
    217
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebViewGroup.cpp

    r149219 r154728  
    2828#include <wtf/gobject/GRefPtr.h>
    2929#include <wtf/text/CString.h>
     30
     31#ifdef GDK_WINDOWING_WAYLAND
     32#include <gdk/gdkwayland.h>
     33#endif
    3034
    3135using namespace WebKit;
     
    127131{
    128132    group->priv->pageGroup->setPreferences(webkitSettingsGetPreferences(group->priv->settings.get()));
     133
     134#ifdef GDK_WINDOWING_WAYLAND
     135    GdkDisplay* display = gdk_display_manager_get_default_display(gdk_display_manager_get());
     136    if (GDK_IS_WAYLAND_DISPLAY(display))
     137        group->priv->pageGroup->preferences()->setAcceleratedCompositingEnabled(false);
     138#endif
    129139}
    130140
Note: See TracChangeset for help on using the changeset viewer.