Title: [195280] releases/WebKitGTK/webkit-2.10/Source/WebKit2
Revision
195280
Author
[email protected]
Date
2016-01-19 02:13:55 -0800 (Tue, 19 Jan 2016)

Log Message

Merge r193626 - [GTK] Allow applications to force Accelerated Compositing mode
https://bugs.webkit.org/show_bug.cgi?id=150558

Patch by Mario Sanchez Prada <[email protected]> on 2015-12-07
Reviewed by Carlos Garcia Campos.

Enable forcing Accelerated Compositing mode to be always on if
a WEBKIT_FORCE_COMPOSITING_MODE environment variable is set.

This can be useful for controlled environments where we know that
AC always on works well enough, to get smoother animations.

* UIProcess/gtk/WebPreferencesGtk.cpp:
(WebKit::WebPreferences::platformInitializeStore): Set forceCompositingMode
setting to true if the environment variable is found.

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.10/Source/WebKit2/ChangeLog (195279 => 195280)


--- releases/WebKitGTK/webkit-2.10/Source/WebKit2/ChangeLog	2016-01-19 10:05:36 UTC (rev 195279)
+++ releases/WebKitGTK/webkit-2.10/Source/WebKit2/ChangeLog	2016-01-19 10:13:55 UTC (rev 195280)
@@ -1,3 +1,20 @@
+2015-12-07  Mario Sanchez Prada  <[email protected]>
+
+        [GTK] Allow applications to force Accelerated Compositing mode
+        https://bugs.webkit.org/show_bug.cgi?id=150558
+
+        Reviewed by Carlos Garcia Campos.
+
+        Enable forcing Accelerated Compositing mode to be always on if
+        a WEBKIT_FORCE_COMPOSITING_MODE environment variable is set.
+
+        This can be useful for controlled environments where we know that
+        AC always on works well enough, to get smoother animations.
+
+        * UIProcess/gtk/WebPreferencesGtk.cpp:
+        (WebKit::WebPreferences::platformInitializeStore): Set forceCompositingMode
+        setting to true if the environment variable is found.
+
 2016-01-17  Jeremy Huddleston Sequoia  <[email protected]>
 
         Add quotes around ${CMAKE_SHARED_LINKER_FLAGS} in case it is unset

Modified: releases/WebKitGTK/webkit-2.10/Source/WebKit2/UIProcess/gtk/WebPreferencesGtk.cpp (195279 => 195280)


--- releases/WebKitGTK/webkit-2.10/Source/WebKit2/UIProcess/gtk/WebPreferencesGtk.cpp	2016-01-19 10:05:36 UTC (rev 195279)
+++ releases/WebKitGTK/webkit-2.10/Source/WebKit2/UIProcess/gtk/WebPreferencesGtk.cpp	2016-01-19 10:13:55 UTC (rev 195280)
@@ -45,6 +45,9 @@
 #endif
 #if !ENABLE(OPENGL)
     setAcceleratedCompositingEnabled(false);
+#else
+    if (getenv("WEBKIT_FORCE_COMPOSITING_MODE"))
+        setForceCompositingMode(true);
 #endif
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to