Index: cc/layer_tree_host.cc |
=================================================================== |
--- cc/layer_tree_host.cc (revision 168251) |
+++ cc/layer_tree_host.cc (working copy) |
@@ -497,7 +497,6 @@ |
void LayerTreeHost::updateLayers(ResourceUpdateQueue& queue, size_t memoryAllocationLimitBytes) |
{ |
DCHECK(m_rendererInitialized); |
- DCHECK(memoryAllocationLimitBytes); |
if (!rootLayer()) |
return; |
@@ -505,7 +504,8 @@ |
if (layoutViewportSize().isEmpty()) |
return; |
- m_contentsTextureManager->setMaxMemoryLimitBytes(memoryAllocationLimitBytes); |
+ if (memoryAllocationLimitBytes) |
+ m_contentsTextureManager->setMaxMemoryLimitBytes(memoryAllocationLimitBytes); |
updateLayers(rootLayer(), queue); |
} |