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

Unified Diff: cc/completion_event.h

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/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 795b0303323fb9db75f2444346e860107ecf2944..6632ab1a6c222c5dc79e737bc2ad271689c9a809 100644
--- a/cc/completion_event.h
+++ b/cc/completion_event.h
@@ -7,6 +7,7 @@
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread_restrictions.h"
+#include "base/logging.h"
namespace cc {
@@ -27,14 +28,16 @@ public:
~CCCompletionEvent()
{
- ASSERT(m_waited);
- ASSERT(m_signaled);
+#ifndef NDEBUG
+ DCHECK(m_waited);
+ DCHECK(m_signaled);
+#endif
}
void wait()
{
- ASSERT(!m_waited);
#ifndef NDEBUG
+ DCHECK(!m_waited);
m_waited = true;
#endif
base::ThreadRestrictions::ScopedAllowWait allow_wait;
@@ -43,8 +46,8 @@ public:
void signal()
{
- ASSERT(!m_signaled);
#ifndef NDEBUG
+ DCHECK(!m_signaled);
m_signaled = true;
#endif
m_event.Signal();
« 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