Index: cc/proxy.h |
diff --git a/cc/proxy.h b/cc/proxy.h |
index 30a62cc55cc9a41ecfc82a3fcd4a324794cf76db..a467704bc6da7f43b9031866ca43657673d39c0b 100644 |
--- a/cc/proxy.h |
+++ b/cc/proxy.h |
@@ -6,6 +6,7 @@ |
#define CCProxy_h |
#include "base/basictypes.h" |
+#include "cc/dcheck.h" |
#include <public/WebCompositorOutputSurface.h> |
#include <wtf/PassOwnPtr.h> |
#include <wtf/PassRefPtr.h> |
@@ -83,7 +84,7 @@ public: |
virtual void acquireLayerTextures() = 0; |
// Debug hooks |
-#ifndef NDEBUG |
+#if CC_DCHECK_ENABLED |
static bool isMainThread(); |
static bool isImplThread(); |
static bool isMainThreadBlocked(); |
@@ -93,7 +94,7 @@ public: |
// Testing hooks |
virtual void loseContext() = 0; |
-#ifndef NDEBUG |
+#if CC_DCHECK_ENABLED |
static void setCurrentThreadIsImplThread(bool); |
#endif |
@@ -110,15 +111,15 @@ class DebugScopedSetMainThreadBlocked { |
public: |
DebugScopedSetMainThreadBlocked() |
{ |
-#if !ASSERT_DISABLED |
- ASSERT(!CCProxy::isMainThreadBlocked()); |
+#if CC_DCHECK_ENABLED |
+ CC_DCHECK(!CCProxy::isMainThreadBlocked()); |
CCProxy::setMainThreadBlocked(true); |
#endif |
} |
~DebugScopedSetMainThreadBlocked() |
{ |
-#if !ASSERT_DISABLED |
- ASSERT(CCProxy::isMainThreadBlocked()); |
+#if CC_DCHECK_ENABLED |
+ CC_DCHECK(CCProxy::isMainThreadBlocked()); |
CCProxy::setMainThreadBlocked(false); |
#endif |
} |