OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1140 compositor_thread_.reset(new base::Thread("Compositor")); | 1140 compositor_thread_.reset(new base::Thread("Compositor")); |
1141 base::Thread::Options compositor_thread_options; | 1141 base::Thread::Options compositor_thread_options; |
1142 #if defined(OS_ANDROID) | 1142 #if defined(OS_ANDROID) |
1143 compositor_thread_options.priority = base::ThreadPriority::DISPLAY; | 1143 compositor_thread_options.priority = base::ThreadPriority::DISPLAY; |
1144 #endif | 1144 #endif |
1145 compositor_thread_->StartWithOptions(compositor_thread_options); | 1145 compositor_thread_->StartWithOptions(compositor_thread_options); |
1146 compositor_task_runner_ = compositor_thread_->task_runner(); | 1146 compositor_task_runner_ = compositor_thread_->task_runner(); |
1147 compositor_task_runner_->PostTask( | 1147 compositor_task_runner_->PostTask( |
1148 FROM_HERE, | 1148 FROM_HERE, |
1149 base::Bind(base::IgnoreResult(&ThreadRestrictions::SetIOAllowed), | 1149 base::Bind(base::IgnoreResult(&ThreadRestrictions::SetIOAllowed), |
1150 false)); | 1150 true)); |
1151 } | 1151 } |
1152 | 1152 |
1153 InputHandlerManagerClient* input_handler_manager_client = NULL; | 1153 InputHandlerManagerClient* input_handler_manager_client = NULL; |
1154 #if defined(OS_ANDROID) | 1154 #if defined(OS_ANDROID) |
1155 if (SynchronousCompositorFactory* factory = | 1155 if (SynchronousCompositorFactory* factory = |
1156 SynchronousCompositorFactory::GetInstance()) { | 1156 SynchronousCompositorFactory::GetInstance()) { |
1157 input_handler_manager_client = factory->GetInputHandlerManagerClient(); | 1157 input_handler_manager_client = factory->GetInputHandlerManagerClient(); |
1158 } | 1158 } |
1159 #endif | 1159 #endif |
1160 if (!input_handler_manager_client) { | 1160 if (!input_handler_manager_client) { |
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2009 } | 2009 } |
2010 | 2010 |
2011 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 2011 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
2012 size_t erased = | 2012 size_t erased = |
2013 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 2013 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
2014 routing_id_); | 2014 routing_id_); |
2015 DCHECK_EQ(1u, erased); | 2015 DCHECK_EQ(1u, erased); |
2016 } | 2016 } |
2017 | 2017 |
2018 } // namespace content | 2018 } // namespace content |
OLD | NEW |