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

Unified Diff: cc/CCSingleThreadProxy.h

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
Index: cc/CCSingleThreadProxy.h
diff --git a/cc/CCSingleThreadProxy.h b/cc/CCSingleThreadProxy.h
index 979dbb3907f529f510878397c38a9725c2249d4b..7906a89c9a8a3496556f7be4df7c5091bea471ee 100644
--- a/cc/CCSingleThreadProxy.h
+++ b/cc/CCSingleThreadProxy.h
@@ -8,7 +8,7 @@
#include "CCAnimationEvents.h"
#include "CCLayerTreeHostImpl.h"
#include "CCProxy.h"
-#include <base/time.h>
+#include "base/time.h"
#include <limits>
namespace cc {
@@ -90,15 +90,11 @@ class DebugScopedSetImplThread {
public:
DebugScopedSetImplThread()
{
-#if !ASSERT_DISABLED
CCProxy::setCurrentThreadIsImplThread(true);
-#endif
}
~DebugScopedSetImplThread()
{
-#if !ASSERT_DISABLED
CCProxy::setCurrentThreadIsImplThread(false);
-#endif
}
};
@@ -108,15 +104,11 @@ class DebugScopedSetMainThread {
public:
DebugScopedSetMainThread()
{
-#if !ASSERT_DISABLED
CCProxy::setCurrentThreadIsImplThread(false);
-#endif
}
~DebugScopedSetMainThread()
{
-#if !ASSERT_DISABLED
CCProxy::setCurrentThreadIsImplThread(true);
-#endif
}
};

Powered by Google App Engine
This is Rietveld 408576698