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

Unified Diff: cc/CCFrameRateCounter.cpp

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (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/CCFrameRateCounter.cpp
diff --git a/cc/CCFrameRateCounter.cpp b/cc/CCFrameRateCounter.cpp
index 80074edee6abd0e6b17aefc997d0a8931bbb8357..a4d50f67e9ba128868272a4e4f27bcdcfb5a8989 100644
--- a/cc/CCFrameRateCounter.cpp
+++ b/cc/CCFrameRateCounter.cpp
@@ -122,7 +122,8 @@ void CCFrameRateCounter::getAverageFPSAndStandardDeviation(double& averageFPS, d
double CCFrameRateCounter::timeStampOfRecentFrame(int n)
{
- ASSERT(n >= 0 && n < kTimeStampHistorySize);
+ DCHECK(n >= 0);
+ DCHECK(n < kTimeStampHistorySize);
int desiredIndex = (frameIndex(m_currentFrameNumber) + n) % kTimeStampHistorySize;
return m_timeStampHistory[desiredIndex];
}

Powered by Google App Engine
This is Rietveld 408576698