Index: cc/trees/proxy_impl.cc |
diff --git a/cc/trees/proxy_impl.cc b/cc/trees/proxy_impl.cc |
index 56919567b05d4aaf1f6e229335ca2b94e68e79c4..95b0cbb2808603c8b7059bc2b8440ca5eef2f8d5 100644 |
--- a/cc/trees/proxy_impl.cc |
+++ b/cc/trees/proxy_impl.cc |
@@ -493,6 +493,12 @@ void ProxyImpl::ScheduledActionCommit() { |
DCHECK(IsMainThreadBlocked()); |
DCHECK(commit_completion_event_); |
+ // Relax the cross-thread access restriction to non-thread-safe RefCount. |
+ // It's safe since the main thread is blocked while a main-thread-bound |
+ // compositor stuff are accessed from the impl thread. |
+ base::ScopedAllowCrossThreadRefCountAccess |
+ allow_cross_thread_ref_count_access; |
+ |
layer_tree_host_impl_->BeginCommit(); |
blocked_main_commit().layer_tree_host->FinishCommitOnImplThread( |
layer_tree_host_impl_.get()); |