Index: cc/frame_rate_controller.cc |
diff --git a/cc/frame_rate_controller.cc b/cc/frame_rate_controller.cc |
index c996ebd767a20ab1f92506b1362d4764d22e5b70..9a2c38147b79afa8fd1219d6e4ccce06a4e5a41f 100644 |
--- a/cc/frame_rate_controller.cc |
+++ b/cc/frame_rate_controller.cc |
@@ -6,6 +6,7 @@ |
#include "CCFrameRateController.h" |
+#include "cc/dcheck.h" |
#include "CCDelayBasedTimeSource.h" |
#include "CCTimeSource.h" |
#include "TraceEvent.h" |
@@ -88,7 +89,7 @@ void CCFrameRateController::setActive(bool active) |
void CCFrameRateController::setMaxFramesPending(int maxFramesPending) |
{ |
- ASSERT(maxFramesPending > 0); |
+ CC_DCHECK(maxFramesPending > 0); |
m_maxFramesPending = maxFramesPending; |
} |
@@ -105,7 +106,7 @@ void CCFrameRateController::setSwapBuffersCompleteSupported(bool supported) |
void CCFrameRateController::onTimerTick() |
{ |
- ASSERT(m_active); |
+ CC_DCHECK(m_active); |
// Check if we have too many frames in flight. |
bool throttled = m_numFramesPending >= m_maxFramesPending; |
@@ -138,7 +139,7 @@ void CCFrameRateController::didBeginFrame() |
void CCFrameRateController::didFinishFrame() |
{ |
- ASSERT(m_swapBuffersCompleteSupported); |
+ CC_DCHECK(m_swapBuffersCompleteSupported); |
m_numFramesPending--; |
if (!m_isTimeSourceThrottling) |