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

Unified Diff: cc/delay_based_time_source.cc

Issue 11192030: cc: Switch to Chromium DCHECKs LOGs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaseonenne 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
« no previous file with comments | « cc/debug_rect_history.cc ('k') | cc/delegated_renderer_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/delay_based_time_source.cc
diff --git a/cc/delay_based_time_source.cc b/cc/delay_based_time_source.cc
index d828379d066ba1c79032c3b16d8b000cd983bbeb..748b02bb232fb697f97c02d2bb88db013c038fa8 100644
--- a/cc/delay_based_time_source.cc
+++ b/cc/delay_based_time_source.cc
@@ -7,6 +7,7 @@
#include "CCDelayBasedTimeSource.h"
#include "base/debug/trace_event.h"
+#include "base/logging.h"
#include <algorithm>
#include <wtf/CurrentTime.h>
#include <wtf/MathExtras.h>
@@ -90,7 +91,7 @@ base::TimeTicks CCDelayBasedTimeSource::nextTickTime()
void CCDelayBasedTimeSource::onTimerFired()
{
- ASSERT(m_state != STATE_INACTIVE);
+ DCHECK(m_state != STATE_INACTIVE);
base::TimeTicks now = this->now();
m_lastTickTime = now;
@@ -202,7 +203,7 @@ base::TimeTicks CCDelayBasedTimeSource::nextTickTarget(base::TimeTicks now)
int intervalsElapsed = static_cast<int>(floor((now - m_nextParameters.tickTarget).InSecondsF() / newInterval.InSecondsF()));
base::TimeTicks lastEffectiveTick = m_nextParameters.tickTarget + newInterval * intervalsElapsed;
base::TimeTicks newTickTarget = lastEffectiveTick + newInterval;
- ASSERT(newTickTarget > now);
+ DCHECK(newTickTarget > now);
// Avoid double ticks when:
// 1) Turning off the timer and turning it right back on.
@@ -219,7 +220,7 @@ void CCDelayBasedTimeSource::postNextTickTask(base::TimeTicks now)
// Post another task *before* the tick and update state
base::TimeDelta delay = newTickTarget - now;
- ASSERT(delay.InMillisecondsF() <=
+ DCHECK(delay.InMillisecondsF() <=
m_nextParameters.interval.InMillisecondsF() * (1.0 + doubleTickThreshold));
m_timer.startOneShot(delay.InSecondsF());
« no previous file with comments | « cc/debug_rect_history.cc ('k') | cc/delegated_renderer_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698