diff options
Diffstat (limited to 'cc/frame_rate_controller.cc')
-rw-r--r-- | cc/frame_rate_controller.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cc/frame_rate_controller.cc b/cc/frame_rate_controller.cc index c154226..c996ebd 100644 --- a/cc/frame_rate_controller.cc +++ b/cc/frame_rate_controller.cc @@ -6,7 +6,6 @@ #include "CCFrameRateController.h" -#include "base/logging.h" #include "CCDelayBasedTimeSource.h" #include "CCTimeSource.h" #include "TraceEvent.h" @@ -89,7 +88,7 @@ void CCFrameRateController::setActive(bool active) void CCFrameRateController::setMaxFramesPending(int maxFramesPending) { - DCHECK(maxFramesPending > 0); + ASSERT(maxFramesPending > 0); m_maxFramesPending = maxFramesPending; } @@ -106,7 +105,7 @@ void CCFrameRateController::setSwapBuffersCompleteSupported(bool supported) void CCFrameRateController::onTimerTick() { - DCHECK(m_active); + ASSERT(m_active); // Check if we have too many frames in flight. bool throttled = m_numFramesPending >= m_maxFramesPending; @@ -139,7 +138,7 @@ void CCFrameRateController::didBeginFrame() void CCFrameRateController::didFinishFrame() { - DCHECK(m_swapBuffersCompleteSupported); + ASSERT(m_swapBuffersCompleteSupported); m_numFramesPending--; if (!m_isTimeSourceThrottling) |