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

Unified Diff: content/public/browser/android/synchronous_compositor.cc

Issue 2812703003: aw: Remove global AllowWait on UI thread (Closed)
Patch Set: future Created 3 years, 8 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 | « content/browser/android/synchronous_compositor_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/android/synchronous_compositor.cc
diff --git a/content/public/browser/android/synchronous_compositor.cc b/content/public/browser/android/synchronous_compositor.cc
index 2b9f39b4b7ffb6b36321752216acbb3ce762502b..f1fdfee5c78755acf7551f358ab3f3bdfd5501ed 100644
--- a/content/public/browser/android/synchronous_compositor.cc
+++ b/content/public/browser/android/synchronous_compositor.cc
@@ -6,6 +6,7 @@
#include <utility>
+#include "base/threading/thread_restrictions.h"
#include "cc/output/compositor_frame.h"
namespace content {
@@ -36,6 +37,7 @@ SynchronousCompositor::FrameFuture::GetFrame() {
DCHECK(!waited_);
waited_ = true;
#endif
+ base::ThreadRestrictions::ScopedAllowWait wait;
waitable_event_.Wait();
return std::move(frame_);
}
« no previous file with comments | « content/browser/android/synchronous_compositor_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698