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