| Index: cc/layer_tree_host.cc
|
| diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc
|
| index e4341a4ca5b12517eda412e073078de0d48f40ab..327cb044fe9e4f7ced21bd0851679a1ecc5b7f02 100644
|
| --- a/cc/layer_tree_host.cc
|
| +++ b/cc/layer_tree_host.cc
|
| @@ -497,7 +497,6 @@ bool LayerTreeHost::initializeRendererIfNeeded()
|
| void LayerTreeHost::updateLayers(ResourceUpdateQueue& queue, size_t memoryAllocationLimitBytes)
|
| {
|
| DCHECK(m_rendererInitialized);
|
| - DCHECK(memoryAllocationLimitBytes);
|
|
|
| if (!rootLayer())
|
| return;
|
| @@ -505,7 +504,8 @@ void LayerTreeHost::updateLayers(ResourceUpdateQueue& queue, size_t memoryAlloca
|
| if (layoutViewportSize().IsEmpty())
|
| return;
|
|
|
| - m_contentsTextureManager->setMaxMemoryLimitBytes(memoryAllocationLimitBytes);
|
| + if (memoryAllocationLimitBytes)
|
| + m_contentsTextureManager->setMaxMemoryLimitBytes(memoryAllocationLimitBytes);
|
|
|
| updateLayers(rootLayer(), queue);
|
| }
|
|
|