Changeset 211205 in webkit


Ignore:
Timestamp:
Jan 26, 2017 1:19:48 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

[Threaded Compositor] Update also the contents size when creating the threaded compositor
https://bugs.webkit.org/show_bug.cgi?id=167452

Reviewed by Žan Doberšek.

In r210954 we ensured that the threaded compositor and the viewport controller were created with the initial web
page size. If we don't update the contents size, the visible rectangle will be empty and tiles won't be created
until contentsSizeDidChange is called. It's even possible, when entering AC mode on demand, that we create the
layer tree host after the contents size changed, in which case nothing is rendered unless we resize the window.

  • WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:

(WebKit::ThreadedCoordinatedLayerTreeHost::ThreadedCoordinatedLayerTreeHost):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r211203 r211205  
     12017-01-26  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [Threaded Compositor] Update also the contents size when creating the threaded compositor
     4        https://bugs.webkit.org/show_bug.cgi?id=167452
     5
     6        Reviewed by Žan Doberšek.
     7
     8        In r210954 we ensured that the threaded compositor and the viewport controller were created with the initial web
     9        page size. If we don't update the contents size, the visible rectangle will be empty and tiles won't be created
     10        until contentsSizeDidChange is called. It's even possible, when entering AC mode on demand, that we create the
     11        layer tree host after the contents size changed, in which case nothing is rendered unless we resize the window.
     12
     13        * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
     14        (WebKit::ThreadedCoordinatedLayerTreeHost::ThreadedCoordinatedLayerTreeHost):
     15
    1162017-01-26  Csaba Osztrogonác  <ossy@webkit.org>
    217
  • trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp

    r210954 r211205  
    5656    , m_viewportController(webPage.size())
    5757{
     58    if (FrameView* frameView = m_webPage.mainFrameView()) {
     59        auto contentsSize = frameView->contentsSize();
     60        if (!contentsSize.isEmpty())
     61            m_viewportController.didChangeContentsSize(contentsSize);
     62    }
     63
    5864    IntSize scaledSize(m_webPage.size());
    5965    scaledSize.scale(m_webPage.deviceScaleFactor());
Note: See TracChangeset for help on using the changeset viewer.