summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/tests/CCLayerIteratorTest.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-07-30 11:37:48 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-07-30 11:38:52 +0200
commit89e2486a48b739f8d771d69ede5a6a1b244a10fc (patch)
tree503b1a7812cf97d93704c32437eb5f62dc1a1ff9 /Source/WebKit/chromium/tests/CCLayerIteratorTest.cpp
parent625f028249cb37c55bbbd153f3902afd0b0756d9 (diff)
downloadqtwebkit-89e2486a48b739f8d771d69ede5a6a1b244a10fc.tar.gz
Imported WebKit commit 0282df8ca7c11d8c8a66ea18543695c69f545a27 (http://svn.webkit.org/repository/webkit/trunk@124002)
New snapshot with prospective Mountain Lion build fix
Diffstat (limited to 'Source/WebKit/chromium/tests/CCLayerIteratorTest.cpp')
-rw-r--r--Source/WebKit/chromium/tests/CCLayerIteratorTest.cpp22
1 files changed, 3 insertions, 19 deletions
diff --git a/Source/WebKit/chromium/tests/CCLayerIteratorTest.cpp b/Source/WebKit/chromium/tests/CCLayerIteratorTest.cpp
index 76dc425aa..73fda4cb4 100644
--- a/Source/WebKit/chromium/tests/CCLayerIteratorTest.cpp
+++ b/Source/WebKit/chromium/tests/CCLayerIteratorTest.cpp
@@ -147,12 +147,7 @@ TEST(CCLayerIteratorTest, simpleTree)
rootLayer->addChild(fourth);
Vector<RefPtr<LayerChromium> > renderSurfaceLayerList;
- Vector<RefPtr<LayerChromium> > layerList;
- renderSurfaceLayerList.append(rootLayer.get());
- CCLayerTreeHostCommon::calculateDrawTransforms(rootLayer.get(), rootLayer.get(),
- WebTransformationMatrix(), WebTransformationMatrix(),
- renderSurfaceLayerList, layerList,
- 256);
+ CCLayerTreeHostCommon::calculateDrawTransforms(rootLayer.get(), rootLayer->bounds(), 1, 256, renderSurfaceLayerList);
CCLayerTreeHostCommon::calculateVisibleAndScissorRects(renderSurfaceLayerList, rootLayer->renderSurface()->contentRect());
iterateBackToFront(&renderSurfaceLayerList);
@@ -195,12 +190,7 @@ TEST(CCLayerIteratorTest, complexTree)
root23->addChild(root231);
Vector<RefPtr<LayerChromium> > renderSurfaceLayerList;
- Vector<RefPtr<LayerChromium> > layerList;
- renderSurfaceLayerList.append(rootLayer.get());
- CCLayerTreeHostCommon::calculateDrawTransforms(rootLayer.get(), rootLayer.get(),
- WebTransformationMatrix(), WebTransformationMatrix(),
- renderSurfaceLayerList, layerList,
- 256);
+ CCLayerTreeHostCommon::calculateDrawTransforms(rootLayer.get(), rootLayer->bounds(), 1, 256, renderSurfaceLayerList);
CCLayerTreeHostCommon::calculateVisibleAndScissorRects(renderSurfaceLayerList, rootLayer->renderSurface()->contentRect());
iterateBackToFront(&renderSurfaceLayerList);
@@ -256,13 +246,7 @@ TEST(CCLayerIteratorTest, complexTreeMultiSurface)
root23->addChild(root231);
Vector<RefPtr<LayerChromium> > renderSurfaceLayerList;
- Vector<RefPtr<LayerChromium> > layerList;
- renderSurfaceLayerList.append(rootLayer.get());
-
- CCLayerTreeHostCommon::calculateDrawTransforms(rootLayer.get(), rootLayer.get(),
- WebTransformationMatrix(), WebTransformationMatrix(),
- renderSurfaceLayerList, layerList,
- 256);
+ CCLayerTreeHostCommon::calculateDrawTransforms(rootLayer.get(), rootLayer->bounds(), 1, 256, renderSurfaceLayerList);
CCLayerTreeHostCommon::calculateVisibleAndScissorRects(renderSurfaceLayerList, rootLayer->renderSurface()->contentRect());
iterateBackToFront(&renderSurfaceLayerList);