Unreviewed, only force settings.acceleratedCompositingEnabled() to true for Cocoa...
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2019 15:36:14 +0000 (15:36 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2019 15:36:14 +0000 (15:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=194166
<rdar://problem/47694328>

Accelerated compositing is broken for me at least. We're a long way from being able to force
it.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):

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

Source/WebKit/ChangeLog
Source/WebKit/WebProcess/WebPage/WebPage.cpp

index b071c06..6d5dc4f 100644 (file)
@@ -1,3 +1,15 @@
+2019-02-04  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        Unreviewed, only force settings.acceleratedCompositingEnabled() to true for Cocoa ports
+        https://bugs.webkit.org/show_bug.cgi?id=194166
+        <rdar://problem/47694328>
+
+        Accelerated compositing is broken for me at least. We're a long way from being able to force
+        it.
+
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::updatePreferences):
+
 2019-02-04  Abderrahim Kitouni  <akitouni@gnome.org>
 
         [GTK] Remove last python2 dependency from CMake build process
index 3d1ba87..512128a 100644 (file)
@@ -3390,10 +3390,12 @@ void WebPage::updatePreferences(const WebPreferencesStore& store)
 
     Settings& settings = m_page->settings();
 
+#if PLATFORM(COCOA)
     if (!settings.acceleratedCompositingEnabled()) {
         RELEASE_LOG_IF_ALLOWED("%p - WebPage - acceleratedCompositingEnabled setting was false. WebKit cannot function in this mode; changing setting to true", this);
         settings.setAcceleratedCompositingEnabled(true);
     }
+#endif
 
     bool requiresUserGestureForMedia = store.getBoolValueForKey(WebPreferencesKey::requiresUserGestureForMediaPlaybackKey());
     settings.setVideoPlaybackRequiresUserGesture(requiresUserGestureForMedia || store.getBoolValueForKey(WebPreferencesKey::requiresUserGestureForVideoPlaybackKey()));