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

Unified Diff: cc/layer_tree_host.cc

Issue 11028021: cc: Improve frame/commit accounting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments Created 8 years, 2 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/frame_rate_counter.cc ('k') | cc/layer_tree_host_impl.h » ('j') | no next file with comments »
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 8d4d63b47f56d07804af7aa56f7a177aad7fba68..90f3932f91a10f47f88228896dd6862c1e15b52f 100644
--- a/cc/layer_tree_host.cc
+++ b/cc/layer_tree_host.cc
@@ -229,7 +229,7 @@ void CCLayerTreeHost::updateAnimations(double monotonicFrameBeginTime)
animateLayers(monotonicFrameBeginTime);
m_animating = false;
- m_renderingStats.numAnimationFrames++;
+ m_renderingStats.mainAnimationFrameCount++;
}
void CCLayerTreeHost::layout()
@@ -780,7 +780,7 @@ void CCLayerTreeHost::animateLayers(double monotonicTime)
if (!CCSettings::acceleratedAnimationEnabled() || !m_needsAnimateLayers)
return;
- TRACE_EVENT0("cc", "CCLayerTreeHostImpl::animateLayers");
+ TRACE_EVENT0("cc", "CCLayerTreeHost::animateLayers");
m_needsAnimateLayers = animateLayersRecursive(m_rootLayer.get(), monotonicTime);
}
@@ -801,7 +801,6 @@ bool CCLayerTreeHost::animateLayersRecursive(LayerChromium* current, double mono
if (animateLayersRecursive(current->children()[i].get(), monotonicTime))
subtreeNeedsAnimateLayers = true;
}
-
return subtreeNeedsAnimateLayers;
}
« no previous file with comments | « cc/frame_rate_counter.cc ('k') | cc/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698