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

Unified Diff: content/browser/android/synchronous_compositor_browser_filter.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 | « base/threading/thread_restrictions.h ('k') | content/browser/android/synchronous_compositor_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/synchronous_compositor_browser_filter.cc
diff --git a/content/browser/android/synchronous_compositor_browser_filter.cc b/content/browser/android/synchronous_compositor_browser_filter.cc
index 1db0063b15594cef805e32165810a200da0f529c..c04a4fb31aa38552e8106563411bd977d4b456da 100644
--- a/content/browser/android/synchronous_compositor_browser_filter.cc
+++ b/content/browser/android/synchronous_compositor_browser_filter.cc
@@ -191,11 +191,14 @@ void SynchronousCompositorBrowserFilter::VSyncComplete() {
std::vector<SyncCompositorCommonRendererParams> params;
params.reserve(compositor_host_pending_renderer_state_.size());
- if (!render_process_host_->Send(
- new SyncCompositorMsg_SynchronizeRendererState(routing_ids,
- &params))) {
- compositor_host_pending_renderer_state_.clear();
- return;
+ {
+ base::ThreadRestrictions::ScopedAllowWait wait;
+ if (!render_process_host_->Send(
+ new SyncCompositorMsg_SynchronizeRendererState(routing_ids,
+ &params))) {
+ compositor_host_pending_renderer_state_.clear();
+ return;
+ }
}
if (compositor_host_pending_renderer_state_.size() != params.size()) {
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | content/browser/android/synchronous_compositor_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698