Changeset 142841 in webkit
- Timestamp:
- Feb 13, 2013 6:30:25 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/Platform/ChangeLog
r142782 r142841 1 2013-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 1 10 2013-02-13 Eberhard Graether <egraether@google.com> 2 11 -
trunk/Source/Platform/chromium/public/WebUnitTestSupport.h
r142581 r142841 33 33 34 34 class WebLayerTreeView; 35 class WebLayerTreeViewClient; 35 36 class WebURL; 36 37 class WebURLResponse; … … 63 64 enum TestViewType { 64 65 TestViewTypeUnitTest, 65 TestViewTypeLayoutTest 66 TestViewTypeLayoutTestSoftware, 67 TestViewTypeLayoutTest3d, 66 68 }; 67 virtual WebLayerTreeView* createLayerTreeViewForTesting(TestViewType type) { return 0; } 69 virtual WebLayerTreeView* createLayerTreeViewForTesting(TestViewType, WebLayerTreeViewClient*) { return 0; } 70 virtual WebLayerTreeView* createLayerTreeViewForTesting(TestViewType) { return 0; } 68 71 }; 69 72 -
trunk/Source/WebKit/chromium/tests/GraphicsLayerChromiumTest.cpp
r142581 r142841 63 63 m_graphicsLayer = adoptPtr(new GraphicsLayerChromium(&m_client)); 64 64 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)); 66 66 ASSERT(m_layerTreeView); 67 67 m_layerTreeView->setRootLayer(*m_platformLayer); -
trunk/Source/WebKit/chromium/tests/ScrollingCoordinatorChromiumTest.cpp
r142581 r142841 60 60 virtual void initializeLayerTreeView(WebLayerTreeViewClient* client, const WebLayer& rootLayer, const WebLayerTreeView::Settings& settings) 61 61 { 62 m_layerTreeView = adoptPtr(Platform::current()->unitTestSupport()->createLayerTreeViewForTesting(WebUnitTestSupport::TestViewTypeUnitTest ));62 m_layerTreeView = adoptPtr(Platform::current()->unitTestSupport()->createLayerTreeViewForTesting(WebUnitTestSupport::TestViewTypeUnitTest, 0)); 63 63 ASSERT(m_layerTreeView); 64 64 m_layerTreeView->setRootLayer(rootLayer); -
trunk/Tools/ChangeLog
r142828 r142841 1 2013-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 1 12 2013-02-13 David Farler <dfarler@apple.com> 2 13 -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp
r142643 r142841 75 75 #include <public/WebURLRequest.h> 76 76 #include <public/WebURLResponse.h> 77 #include <public/WebUnitTestSupport.h> 77 78 78 79 #include <wtf/Assertions.h> … … 129 130 WebCompositorOutputSurface* WebViewHost::createOutputSurface() 130 131 { 132 // FIXME: Remove when the WebLayerTreeView is provided by WebUnitTestSupport. 131 133 if (!webView()) 132 134 return 0; … … 331 333 void WebViewHost::initializeLayerTreeView(WebLayerTreeViewClient* client, const WebLayer& rootLayer, const WebLayerTreeView::Settings& settings) 332 334 { 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(); 336 347 } 337 348
Note: See TracChangeset
for help on using the changeset viewer.