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

Unified Diff: cc/CCFrameRateCounter.cpp

Issue 11028021: cc: Improve frame/commit accounting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use uint64_t and rename variables to *Count 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/CCFrameRateCounter.cpp
diff --git a/cc/CCFrameRateCounter.cpp b/cc/CCFrameRateCounter.cpp
index 521b50166b59d75370c12d96b217c53af22f7271..affbb93ffe8da00fd364047ddf126cce9f975380 100644
--- a/cc/CCFrameRateCounter.cpp
+++ b/cc/CCFrameRateCounter.cpp
@@ -15,7 +15,6 @@ namespace cc {
const double CCFrameRateCounter::kFrameTooFast = 1.0 / 70.0; // measured in seconds
const double CCFrameRateCounter::kFrameTooSlow = 1.0 / 12.0;
-const double CCFrameRateCounter::kDroppedFrameTime = 1.0 / 50.0;
// safeMod works on -1, returning m-1 in that case.
static inline int safeMod(int number, int modulus)
@@ -36,7 +35,6 @@ inline int CCFrameRateCounter::frameIndex(int frameNumber) const
CCFrameRateCounter::CCFrameRateCounter()
: m_currentFrameNumber(1)
- , m_droppedFrameCount(0)
{
m_timeStampHistory[0] = currentTime();
m_timeStampHistory[1] = m_timeStampHistory[0];
@@ -53,9 +51,6 @@ void CCFrameRateCounter::markBeginningOfFrame(double timestamp)
double drawDelayMs = frameIntervalSeconds * 1000.0;
WebKit::Platform::current()->histogramCustomCounts("Renderer4.CompositorThreadImplDrawDelay", static_cast<int>(drawDelayMs), 1, 120, 60);
}
-
- if (!isBadFrameInterval(frameIntervalSeconds) && frameIntervalSeconds > kDroppedFrameTime)
- ++m_droppedFrameCount;
}
void CCFrameRateCounter::markEndOfFrame()

Powered by Google App Engine
This is Rietveld 408576698