Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1152)

Unified Diff: cc/layer_tree_host.cc

Issue 11362054: Use message passing for BeginFrameAndCommitState and clean up forced commit logic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/scheduler.cc » ('j') | cc/scheduler_state_machine.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | cc/scheduler.cc » ('j') | cc/scheduler_state_machine.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698