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

Unified Diff: cc/base/completion_event.h

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/animation/keyframed_animation_curve_unittest.cc ('k') | cc/cc.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/completion_event.h
diff --git a/cc/base/completion_event.h b/cc/base/completion_event.h
index 96ccf5417de9d42c48ba6e28d5c56066fa1d9f62..6bae765dd20e2173065bccab670afd2618547a95 100644
--- a/cc/base/completion_event.h
+++ b/cc/base/completion_event.h
@@ -19,21 +19,21 @@ class CompletionEvent {
public:
CompletionEvent()
: event_(false /* manual_reset */, false /* initially_signaled */) {
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
waited_ = false;
signaled_ = false;
#endif
}
~CompletionEvent() {
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
DCHECK(waited_);
DCHECK(signaled_);
#endif
}
void Wait() {
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
DCHECK(!waited_);
waited_ = true;
#endif
@@ -42,7 +42,7 @@ class CompletionEvent {
}
void Signal() {
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
DCHECK(!signaled_);
signaled_ = true;
#endif
@@ -51,7 +51,7 @@ class CompletionEvent {
private:
base::WaitableEvent event_;
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
// Used to assert that Wait() and Signal() are each called exactly once.
bool waited_;
bool signaled_;
« no previous file with comments | « cc/animation/keyframed_animation_curve_unittest.cc ('k') | cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698