Title: [155333] releases/WebKitGTK/webkit-2.2/Source/WebKit2
- Revision
- 155333
- Author
- [email protected]
- Date
- 2013-09-09 02:03:21 -0700 (Mon, 09 Sep 2013)
Log Message
Merge r154728 - [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):
Modified Paths
Diff
Modified: releases/WebKitGTK/webkit-2.2/Source/WebKit2/ChangeLog (155332 => 155333)
--- releases/WebKitGTK/webkit-2.2/Source/WebKit2/ChangeLog 2013-09-09 08:57:20 UTC (rev 155332)
+++ releases/WebKitGTK/webkit-2.2/Source/WebKit2/ChangeLog 2013-09-09 09:03:21 UTC (rev 155333)
@@ -1,3 +1,18 @@
+2013-08-28 Zan Dobersek <[email protected]>
+
+ [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):
+
2013-09-04 Zan Dobersek <[email protected]>
[GTK] Add support for the Wayland build target
Modified: releases/WebKitGTK/webkit-2.2/Source/WebKit2/UIProcess/API/gtk/WebKitWebViewGroup.cpp (155332 => 155333)
--- releases/WebKitGTK/webkit-2.2/Source/WebKit2/UIProcess/API/gtk/WebKitWebViewGroup.cpp 2013-09-09 08:57:20 UTC (rev 155332)
+++ releases/WebKitGTK/webkit-2.2/Source/WebKit2/UIProcess/API/gtk/WebKitWebViewGroup.cpp 2013-09-09 09:03:21 UTC (rev 155333)
@@ -28,6 +28,10 @@
#include <wtf/gobject/GRefPtr.h>
#include <wtf/text/CString.h>
+#ifdef GDK_WINDOWING_WAYLAND
+#include <gdk/gdkwayland.h>
+#endif
+
using namespace WebKit;
/**
@@ -126,6 +130,12 @@
static void webkitWebViewGroupAttachSettingsToPageGroup(WebKitWebViewGroup* group)
{
group->priv->pageGroup->setPreferences(webkitSettingsGetPreferences(group->priv->settings.get()));
+
+#ifdef GDK_WINDOWING_WAYLAND
+ GdkDisplay* display = gdk_display_manager_get_default_display(gdk_display_manager_get());
+ if (GDK_IS_WAYLAND_DISPLAY(display))
+ group->priv->pageGroup->preferences()->setAcceleratedCompositingEnabled(false);
+#endif
}
WebKitWebViewGroup* webkitWebViewGroupCreate(WebPageGroup* pageGroup)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes