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

Unified Diff: cc/completion_event.h

Issue 11085054: Aura: Allow browser UI thread waiting for compositor commits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 | « base/threading/thread_restrictions.h ('k') | no next file » | 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 462e4ba12f6885a40c01711e66187a2e795c4d52..795b0303323fb9db75f2444346e860107ecf2944 100644
--- a/cc/completion_event.h
+++ b/cc/completion_event.h
@@ -6,6 +6,7 @@
#define CCCompletionEvent_h
#include "base/synchronization/waitable_event.h"
+#include "base/threading/thread_restrictions.h"
namespace cc {
@@ -36,6 +37,7 @@ public:
#ifndef NDEBUG
m_waited = true;
#endif
+ base::ThreadRestrictions::ScopedAllowWait allow_wait;
m_event.Wait();
}
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698