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

Unified Diff: cc/CCLayerTreeHostImpl.cpp

Issue 11028021: cc: Improve frame/commit accounting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
Index: cc/CCLayerTreeHostImpl.cpp
diff --git a/cc/CCLayerTreeHostImpl.cpp b/cc/CCLayerTreeHostImpl.cpp
index 5b1a23d67c4849142e87a75153fb473335e1f628..640f43d37a426abbfd1c0ac4bd6c9ddfff489749 100644
--- a/cc/CCLayerTreeHostImpl.cpp
+++ b/cc/CCLayerTreeHostImpl.cpp
@@ -129,6 +129,7 @@ CCLayerTreeHostImpl::CCLayerTreeHostImpl(const CCLayerTreeSettings& settings, CC
, m_hasTransparentBackground(false)
, m_needsAnimateLayers(false)
, m_pinchGestureActive(false)
+ , m_numAnimationFrames(0)
, m_fpsCounter(CCFrameRateCounter::create())
, m_debugRectHistory(CCDebugRectHistory::create())
, m_numImplThreadScrolls(0)
@@ -1230,6 +1231,7 @@ void CCLayerTreeHostImpl::animateLayers(double monotonicTime, double wallClockTi
if (!CCSettings::acceleratedAnimationEnabled() || !m_needsAnimateLayers || !m_rootLayerImpl)
return;
+ m_numAnimationFrames++;
TRACE_EVENT0("cc", "CCLayerTreeHostImpl::animateLayers");
OwnPtr<CCAnimationEventsVector> events(adoptPtr(new CCAnimationEventsVector));
@@ -1305,9 +1307,9 @@ int CCLayerTreeHostImpl::sourceAnimationFrameNumber() const
void CCLayerTreeHostImpl::renderingStats(CCRenderingStats* stats) const
{
stats->numFramesSentToScreen = fpsCounter()->currentFrameNumber();
- stats->droppedFrameCount = fpsCounter()->droppedFrameCount();
stats->numImplThreadScrolls = m_numImplThreadScrolls;
stats->numMainThreadScrolls = m_numMainThreadScrolls;
+ stats->numAnimationFramesImpl = m_numAnimationFrames;
}
void CCLayerTreeHostImpl::animateScrollbars(double monotonicTime)

Powered by Google App Engine
This is Rietveld 408576698