Index: Source/WebKit/chromium/tests/TiledLayerChromiumTest.cpp |
=================================================================== |
--- Source/WebKit/chromium/tests/TiledLayerChromiumTest.cpp (revision 122257) |
+++ Source/WebKit/chromium/tests/TiledLayerChromiumTest.cpp (working copy) |
@@ -823,8 +823,7 @@ |
ccLayerTreeHost->setRootLayer(rootLayer); |
ccLayerTreeHost->setViewportSize(IntSize(300, 300)); |
- textureManager->setMaxMemoryLimitBytes(memoryLimit); |
- ccLayerTreeHost->updateLayers(updater); |
+ ccLayerTreeHost->updateLayers(updater, memoryLimit); |
// We'll skip the root layer. |
EXPECT_TRUE(rootLayer->skipsDraw()); |
@@ -836,7 +835,7 @@ |
// Remove the child layer. |
rootLayer->removeAllChildren(); |
- ccLayerTreeHost->updateLayers(updater); |
+ ccLayerTreeHost->updateLayers(updater, memoryLimit); |
EXPECT_FALSE(rootLayer->skipsDraw()); |
ccLayerTreeHost->setRootLayer(0); |
@@ -903,7 +902,7 @@ |
ccLayerTreeHost->setViewportSize(IntSize(300, 200)); |
// Full update of all 6 tiles. |
- ccLayerTreeHost->updateLayers(updater); |
+ ccLayerTreeHost->updateLayers(updater, std::numeric_limits<size_t>::max()); |
{ |
DebugScopedSetImplThread implThread; |
OwnPtr<FakeCCTiledLayerImpl> layerImpl(adoptPtr(new FakeCCTiledLayerImpl(0))); |
@@ -921,7 +920,7 @@ |
// Full update of 3 tiles and partial update of 3 tiles. |
layer->invalidateRect(IntRect(0, 0, 300, 150)); |
- ccLayerTreeHost->updateLayers(updater); |
+ ccLayerTreeHost->updateLayers(updater, std::numeric_limits<size_t>::max()); |
{ |
DebugScopedSetImplThread implThread; |
OwnPtr<FakeCCTiledLayerImpl> layerImpl(adoptPtr(new FakeCCTiledLayerImpl(0))); |
@@ -942,7 +941,7 @@ |
{ |
DebugScopedSetImplThread implThread; |
OwnPtr<FakeCCTiledLayerImpl> layerImpl(adoptPtr(new FakeCCTiledLayerImpl(0))); |
- ccLayerTreeHost->updateLayers(updater); |
+ ccLayerTreeHost->updateLayers(updater, std::numeric_limits<size_t>::max()); |
updater.update(0, &allocator, &copier, &uploader, 4); |
EXPECT_EQ(2, layer->fakeLayerTextureUpdater()->updateCount()); |
EXPECT_TRUE(updater.hasMoreUpdates()); |
@@ -969,7 +968,7 @@ |
{ |
DebugScopedSetImplThread implThread; |
OwnPtr<FakeCCTiledLayerImpl> layerImpl(adoptPtr(new FakeCCTiledLayerImpl(0))); |
- ccLayerTreeHost->updateLayers(updater); |
+ ccLayerTreeHost->updateLayers(updater, std::numeric_limits<size_t>::max()); |
updater.update(0, &allocator, &copier, &uploader, 4); |
EXPECT_EQ(4, layer->fakeLayerTextureUpdater()->updateCount()); |
EXPECT_TRUE(updater.hasMoreUpdates()); |
@@ -987,7 +986,7 @@ |
{ |
DebugScopedSetImplThread implThread; |
OwnPtr<FakeCCTiledLayerImpl> layerImpl(adoptPtr(new FakeCCTiledLayerImpl(0))); |
- ccLayerTreeHost->updateLayers(updater); |
+ ccLayerTreeHost->updateLayers(updater, std::numeric_limits<size_t>::max()); |
updater.update(0, &allocator, &copier, &uploader, 4); |
EXPECT_EQ(4, layer->fakeLayerTextureUpdater()->updateCount()); |
EXPECT_FALSE(updater.hasMoreUpdates()); |