Changeset 142841 in webkit


Ignore:
Timestamp:
Feb 13, 2013 6:30:25 PM (11 years ago)
Author:
jamesr@google.com
Message:

[chromium] Request WebLayerTreeView for DumpRenderTree via explicit testing path
https://bugs.webkit.org/show_bug.cgi?id=109634

Reviewed by Adrienne Walker.

Source/Platform:

  • chromium/public/WebUnitTestSupport.h:

Tools:

  • DumpRenderTree/chromium/WebViewHost.cpp:

(WebViewHost::createOutputSurface):
(WebViewHost::initializeLayerTreeView):

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/Platform/ChangeLog

    r142782 r142841  
     12013-02-12  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] Request WebLayerTreeView for DumpRenderTree via explicit testing path
     4        https://bugs.webkit.org/show_bug.cgi?id=109634
     5
     6        Reviewed by Adrienne Walker.
     7
     8        * chromium/public/WebUnitTestSupport.h:
     9
    1102013-02-13  Eberhard Graether  <egraether@google.com>
    211
  • trunk/Source/Platform/chromium/public/WebUnitTestSupport.h

    r142581 r142841  
    3333
    3434class WebLayerTreeView;
     35class WebLayerTreeViewClient;
    3536class WebURL;
    3637class WebURLResponse;
     
    6364    enum TestViewType {
    6465        TestViewTypeUnitTest,
    65         TestViewTypeLayoutTest
     66        TestViewTypeLayoutTestSoftware,
     67        TestViewTypeLayoutTest3d,
    6668    };
    67     virtual WebLayerTreeView* createLayerTreeViewForTesting(TestViewType type) { return 0; }
     69    virtual WebLayerTreeView* createLayerTreeViewForTesting(TestViewType, WebLayerTreeViewClient*) { return 0; }
     70    virtual WebLayerTreeView* createLayerTreeViewForTesting(TestViewType) { return 0; }
    6871};
    6972
  • trunk/Source/WebKit/chromium/tests/GraphicsLayerChromiumTest.cpp

    r142581 r142841  
    6363        m_graphicsLayer = adoptPtr(new GraphicsLayerChromium(&m_client));
    6464        m_platformLayer = m_graphicsLayer->platformLayer();
    65         m_layerTreeView = adoptPtr(Platform::current()->unitTestSupport()->createLayerTreeViewForTesting(WebUnitTestSupport::TestViewTypeUnitTest));
     65        m_layerTreeView = adoptPtr(Platform::current()->unitTestSupport()->createLayerTreeViewForTesting(WebUnitTestSupport::TestViewTypeUnitTest, 0));
    6666        ASSERT(m_layerTreeView);
    6767        m_layerTreeView->setRootLayer(*m_platformLayer);
  • trunk/Source/WebKit/chromium/tests/ScrollingCoordinatorChromiumTest.cpp

    r142581 r142841  
    6060    virtual void initializeLayerTreeView(WebLayerTreeViewClient* client, const WebLayer& rootLayer, const WebLayerTreeView::Settings& settings)
    6161    {
    62         m_layerTreeView = adoptPtr(Platform::current()->unitTestSupport()->createLayerTreeViewForTesting(WebUnitTestSupport::TestViewTypeUnitTest));
     62        m_layerTreeView = adoptPtr(Platform::current()->unitTestSupport()->createLayerTreeViewForTesting(WebUnitTestSupport::TestViewTypeUnitTest, 0));
    6363        ASSERT(m_layerTreeView);
    6464        m_layerTreeView->setRootLayer(rootLayer);
  • trunk/Tools/ChangeLog

    r142828 r142841  
     12013-02-12  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] Request WebLayerTreeView for DumpRenderTree via explicit testing path
     4        https://bugs.webkit.org/show_bug.cgi?id=109634
     5
     6        Reviewed by Adrienne Walker.
     7
     8        * DumpRenderTree/chromium/WebViewHost.cpp:
     9        (WebViewHost::createOutputSurface):
     10        (WebViewHost::initializeLayerTreeView):
     11
    1122013-02-13  David Farler  <dfarler@apple.com>
    213
  • trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp

    r142643 r142841  
    7575#include <public/WebURLRequest.h>
    7676#include <public/WebURLResponse.h>
     77#include <public/WebUnitTestSupport.h>
    7778
    7879#include <wtf/Assertions.h>
     
    129130WebCompositorOutputSurface* WebViewHost::createOutputSurface()
    130131{
     132    // FIXME: Remove when the WebLayerTreeView is provided by WebUnitTestSupport.
    131133    if (!webView())
    132134        return 0;
     
    331333void WebViewHost::initializeLayerTreeView(WebLayerTreeViewClient* client, const WebLayer& rootLayer, const WebLayerTreeView::Settings& settings)
    332334{
    333     m_layerTreeView = adoptPtr(Platform::current()->compositorSupport()->createLayerTreeView(client, rootLayer, settings));
    334     if (m_layerTreeView)
    335         m_layerTreeView->setSurfaceReady();
     335    if (m_shell->softwareCompositingEnabled())
     336        m_layerTreeView = adoptPtr(Platform::current()->unitTestSupport()->createLayerTreeViewForTesting(WebUnitTestSupport::TestViewTypeLayoutTestSoftware, client));
     337    else
     338        m_layerTreeView = adoptPtr(Platform::current()->unitTestSupport()->createLayerTreeViewForTesting(WebUnitTestSupport::TestViewTypeLayoutTest3d, client));
     339
     340    // FIXME: Remove this path when the unitTestSupport version is implemented in chromium land.
     341    if (!m_layerTreeView)
     342        m_layerTreeView = adoptPtr(Platform::current()->compositorSupport()->createLayerTreeView(client, rootLayer, settings));
     343
     344    ASSERT(m_layerTreeView);
     345    m_layerTreeView->setRootLayer(rootLayer);
     346    m_layerTreeView->setSurfaceReady();
    336347}
    337348
Note: See TracChangeset for help on using the changeset viewer.