Changeset 233726 in webkit


Ignore:
Timestamp:
Jul 11, 2018, 1:18:28 AM (7 years ago)
Author:
zandobersek@gmail.com
Message:

[WPE] AC for fixed-position elements is not enabled
https://bugs.webkit.org/show_bug.cgi?id=187514

Reviewed by Carlos Garcia Campos.

Enable accelerated compositing for fixed-position elements when using
AcceleratedDrawingArea and AC is force-enabled. This effectively enables
this option for the WPE port which is using the AcceleratedDrawingArea
implementation and not DrawingAreaImpl like the GTK+ port.

  • WebProcess/WebPage/AcceleratedDrawingArea.cpp:

(WebKit::AcceleratedDrawingArea::updatePreferences):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r233725 r233726  
     12018-07-11  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [WPE] AC for fixed-position elements is not enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=187514
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Enable accelerated compositing for fixed-position elements when using
     9        AcceleratedDrawingArea and AC is force-enabled. This effectively enables
     10        this option for the WPE port which is using the AcceleratedDrawingArea
     11        implementation and not DrawingAreaImpl like the GTK+ port.
     12
     13        * WebProcess/WebPage/AcceleratedDrawingArea.cpp:
     14        (WebKit::AcceleratedDrawingArea::updatePreferences):
     15
    1162018-07-11  Christopher Reid  <chris.reid@sony.com>
    217
  • trunk/Source/WebKit/WebProcess/WebPage/AcceleratedDrawingArea.cpp

    r233647 r233726  
    152152void AcceleratedDrawingArea::updatePreferences(const WebPreferencesStore& store)
    153153{
    154     m_webPage.corePage()->settings().setForceCompositingMode(store.getBoolValueForKey(WebPreferencesKey::forceCompositingModeKey()));
     154    Settings& settings = m_webPage.corePage()->settings();
     155    bool forceCompositiongMode = store.getBoolValueForKey(WebPreferencesKey::forceCompositingModeKey());
     156    settings.setForceCompositingMode(forceCompositiongMode);
     157    settings.setAcceleratedCompositingForFixedPositionEnabled(forceCompositiongMode);
    155158    if (!m_layerTreeHost)
    156159        enterAcceleratedCompositingMode(nullptr);
Note: See TracChangeset for help on using the changeset viewer.