Changeset 211083 in webkit


Ignore:
Timestamp:
Jan 24, 2017 6:10:43 AM (7 years ago)
Author:
magomez@igalia.com
Message:

[Coordinated Graphics] Ensure that we're in AC mode before trying to create GraphicsLayers
https://bugs.webkit.org/show_bug.cgi?id=167365

Reviewed by Carlos Garcia Campos.

When entering AC on demand, the RenderLayerCompositor wants to create the root GraphicsLayer before the
AcceleratedDrawingArea is in AC mode. This means there's no LayerTreeHost to request the GraphicsLayerFactory,
so no layers are created. Ensure that we are in AC mode before requesting the GraphicsLayerFactory.

No behaviour change, no new tests.

  • WebProcess/WebPage/AcceleratedDrawingArea.cpp:

(WebKit::AcceleratedDrawingArea::graphicsLayerFactory):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r211079 r211083  
     12017-01-24  Miguel Gomez  <magomez@igalia.com>
     2
     3        [Coordinated Graphics] Ensure that we're in AC mode before trying to create GraphicsLayers
     4        https://bugs.webkit.org/show_bug.cgi?id=167365
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        When entering AC on demand, the RenderLayerCompositor wants to create the root GraphicsLayer before the
     9        AcceleratedDrawingArea is in AC mode. This means there's no LayerTreeHost to request the GraphicsLayerFactory,
     10        so no layers are created. Ensure that we are in AC mode before requesting the GraphicsLayerFactory.
     11
     12        No behaviour change, no new tests.
     13
     14        * WebProcess/WebPage/AcceleratedDrawingArea.cpp:
     15        (WebKit::AcceleratedDrawingArea::graphicsLayerFactory):
     16
    1172017-01-23  Carlos Garcia Campos  <cgarcia@igalia.com>
    218
  • trunk/Source/WebKit2/WebProcess/WebPage/AcceleratedDrawingArea.cpp

    r208225 r211083  
    175175GraphicsLayerFactory* AcceleratedDrawingArea::graphicsLayerFactory()
    176176{
     177    if (!m_layerTreeHost)
     178        enterAcceleratedCompositingMode(nullptr);
    177179    return m_layerTreeHost ? m_layerTreeHost->graphicsLayerFactory() : nullptr;
    178180}
Note: See TracChangeset for help on using the changeset viewer.