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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 12045086: cc: Throttle tile priority updates to once a frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebasedonmaster Created 7 years, 11 months 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 | « cc/layer_tree_host_common_unittest.cc ('k') | cc/layer_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index 7dec266a2ce2f756139e6b89d5be673a03bdb9ba..1c60e798136e1599d8360977ec278348159225d0 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -193,7 +193,7 @@ void LayerTreeHostImpl::commitComplete()
// more lazily when needed prior to drawing.
if (m_settings.implSidePainting) {
pendingTree()->set_needs_update_draw_properties();
- pendingTree()->UpdateDrawProperties();
+ pendingTree()->UpdateDrawProperties(LayerTreeImpl::UPDATE_PENDING_TREE);
} else {
activeTree()->set_needs_update_draw_properties();
}
@@ -650,7 +650,7 @@ bool LayerTreeHostImpl::prepareToDraw(FrameData& frame)
if (m_topControlsManager)
m_topControlsManager->UpdateDrawPositions();
- activeTree()->UpdateDrawProperties();
+ activeTree()->UpdateDrawProperties(LayerTreeImpl::UPDATE_ACTIVE_TREE_FOR_DRAW);
frame.renderSurfaceLayerList = &activeTree()->RenderSurfaceLayerList();
frame.renderPasses.clear();
@@ -934,7 +934,7 @@ void LayerTreeHostImpl::activatePendingTreeIfNeeded()
if (!pendingTree())
return;
- pendingTree()->UpdateDrawProperties();
+ pendingTree()->UpdateDrawProperties(LayerTreeImpl::UPDATE_PENDING_TREE);
// It's always fine to activate to an empty tree. Otherwise, only
// activate once all visible resources in pending tree are ready.
@@ -1161,7 +1161,7 @@ void LayerTreeHostImpl::setNeedsRedraw()
bool LayerTreeHostImpl::ensureRenderSurfaceLayerList()
{
- activeTree()->UpdateDrawProperties();
+ activeTree()->UpdateDrawProperties(LayerTreeImpl::UPDATE_ACTIVE_TREE);
return activeTree()->RenderSurfaceLayerList().size();
}
« no previous file with comments | « cc/layer_tree_host_common_unittest.cc ('k') | cc/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698