[GTK] Allow applications to disable Accelerated Compositing mode.
authorclopez@igalia.com <clopez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Feb 2016 11:37:31 +0000 (11:37 +0000)
committerclopez@igalia.com <clopez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Feb 2016 11:37:31 +0000 (11:37 +0000)
https://bugs.webkit.org/show_bug.cgi?id=154147

Reviewed by Carlos Garcia Campos.

* UIProcess/gtk/WebPreferencesGtk.cpp:
(WebKit::WebPreferences::platformInitializeStore): if the environment
variable  WEBKIT_DISABLE_COMPOSITING_MODE is defined, then disable AC.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@196467 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/gtk/WebPreferencesGtk.cpp

index 4079af7..3e49a4d 100644 (file)
@@ -1,3 +1,14 @@
+2016-02-12  Carlos Alberto Lopez Perez  <clopez@igalia.com>
+
+        [GTK] Allow applications to disable Accelerated Compositing mode.
+        https://bugs.webkit.org/show_bug.cgi?id=154147
+
+        Reviewed by Carlos Garcia Campos.
+
+        * UIProcess/gtk/WebPreferencesGtk.cpp:
+        (WebKit::WebPreferences::platformInitializeStore): if the environment
+        variable  WEBKIT_DISABLE_COMPOSITING_MODE is defined, then disable AC.
+
 2016-02-11  Commit Queue  <commit-queue@webkit.org>
 
         Unreviewed, rolling out r196453.
index c7242c4..eed234f 100644 (file)
@@ -46,6 +46,8 @@ void WebPreferences::platformInitializeStore()
 #else
     if (getenv("WEBKIT_FORCE_COMPOSITING_MODE"))
         setForceCompositingMode(true);
+    if (getenv("WEBKIT_DISABLE_COMPOSITING_MODE"))
+        setAcceleratedCompositingEnabled(false);
 #endif
 }