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

Unified Diff: cc/CCFrameRateController.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/CCFrameRateController.cpp
diff --git a/cc/CCFrameRateController.cpp b/cc/CCFrameRateController.cpp
index c996ebd767a20ab1f92506b1362d4764d22e5b70..971e9ebaf3b4a4a7383359269fc15d1c350eb113 100644
--- a/cc/CCFrameRateController.cpp
+++ b/cc/CCFrameRateController.cpp
@@ -88,7 +88,7 @@ void CCFrameRateController::setActive(bool active)
void CCFrameRateController::setMaxFramesPending(int maxFramesPending)
{
- ASSERT(maxFramesPending > 0);
+ DCHECK(maxFramesPending > 0);
m_maxFramesPending = maxFramesPending;
}
@@ -105,7 +105,7 @@ void CCFrameRateController::setSwapBuffersCompleteSupported(bool supported)
void CCFrameRateController::onTimerTick()
{
- ASSERT(m_active);
+ DCHECK(m_active);
// Check if we have too many frames in flight.
bool throttled = m_numFramesPending >= m_maxFramesPending;
@@ -138,7 +138,7 @@ void CCFrameRateController::didBeginFrame()
void CCFrameRateController::didFinishFrame()
{
- ASSERT(m_swapBuffersCompleteSupported);
+ DCHECK(m_swapBuffersCompleteSupported);
m_numFramesPending--;
if (!m_isTimeSourceThrottling)
« cc/CCCompletionEvent.h ('K') | « cc/CCFontAtlas.cpp ('k') | cc/CCFrameRateCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698