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

Unified Diff: cc/completion_event.h

Issue 11196014: Revert "cc: Switch to Chromium DCHECKs LOGs" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « cc/checkerboard_draw_quad.cc ('k') | cc/damage_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/completion_event.h
diff --git a/cc/completion_event.h b/cc/completion_event.h
index 8113fab0ca5a6272265418b1a08d132c285fe969..795b0303323fb9db75f2444346e860107ecf2944 100644
--- a/cc/completion_event.h
+++ b/cc/completion_event.h
@@ -7,7 +7,6 @@
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread_restrictions.h"
-#include "cc/dcheck.h"
namespace cc {
@@ -20,7 +19,7 @@ public:
CCCompletionEvent()
: m_event(false /* manual_reset */, false /* initially_signaled */)
{
-#if CC_DCHECK_ENABLED()
+#ifndef NDEBUG
m_waited = false;
m_signaled = false;
#endif
@@ -28,14 +27,14 @@ public:
~CCCompletionEvent()
{
- DCHECK(m_waited);
- DCHECK(m_signaled);
+ ASSERT(m_waited);
+ ASSERT(m_signaled);
}
void wait()
{
- DCHECK(!m_waited);
-#if CC_DCHECK_ENABLED()
+ ASSERT(!m_waited);
+#ifndef NDEBUG
m_waited = true;
#endif
base::ThreadRestrictions::ScopedAllowWait allow_wait;
@@ -44,8 +43,8 @@ public:
void signal()
{
- DCHECK(!m_signaled);
-#if CC_DCHECK_ENABLED()
+ ASSERT(!m_signaled);
+#ifndef NDEBUG
m_signaled = true;
#endif
m_event.Signal();
@@ -53,7 +52,7 @@ public:
private:
base::WaitableEvent m_event;
-#if CC_DCHECK_ENABLED()
+#ifndef NDEBUG
// Used to assert that wait() and signal() are each called exactly once.
bool m_waited;
bool m_signaled;
« no previous file with comments | « cc/checkerboard_draw_quad.cc ('k') | cc/damage_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698