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

Unified Diff: cc/frame_rate_controller.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/font_atlas.cc ('k') | cc/frame_rate_counter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/frame_rate_controller.cc
diff --git a/cc/frame_rate_controller.cc b/cc/frame_rate_controller.cc
index fb29e2ed7f8974f0be24b3e2ee71902c98ae767b..ba11e528c65363c791ad77e5f52f2f008d8e34d3 100644
--- a/cc/frame_rate_controller.cc
+++ b/cc/frame_rate_controller.cc
@@ -6,6 +6,7 @@
#include "CCFrameRateController.h"
+#include "base/logging.h"
#include "CCDelayBasedTimeSource.h"
#include "CCTimeSource.h"
#include "base/debug/trace_event.h"
@@ -88,7 +89,7 @@ void CCFrameRateController::setActive(bool active)
void CCFrameRateController::setMaxFramesPending(int maxFramesPending)
{
- ASSERT(maxFramesPending > 0);
+ DCHECK(maxFramesPending > 0);
m_maxFramesPending = maxFramesPending;
}
@@ -105,7 +106,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 +139,7 @@ void CCFrameRateController::didBeginFrame()
void CCFrameRateController::didFinishFrame()
{
- ASSERT(m_swapBuffersCompleteSupported);
+ DCHECK(m_swapBuffersCompleteSupported);
m_numFramesPending--;
if (!m_isTimeSourceThrottling)
« no previous file with comments | « cc/font_atlas.cc ('k') | cc/frame_rate_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698