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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 1550093002: Partial revert of 'Refactor CompositorWorkerManager' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/renderer/render_thread_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index a77545f2e612c1c2bf88ad79ca36344af54f4518..80e2d967c83a7097dbf43640cdf5ea7c97bb03c5 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1146,18 +1146,18 @@ void RenderThreadImpl::InitializeCompositorThread() {
}
#endif
if (!compositor_task_runner_.get()) {
- base::Thread::Options options;
+
+ compositor_thread_.reset(new base::Thread("Compositor"));
+ base::Thread::Options compositor_thread_options;
#if defined(OS_ANDROID)
- options.priority = base::ThreadPriority::DISPLAY;
+ compositor_thread_options.priority = base::ThreadPriority::DISPLAY;
#endif
- compositor_thread_ =
- blink_platform_impl_->createThreadWithOptions("Compositor", options);
- compositor_task_runner_ = compositor_thread_->TaskRunner();
+ compositor_thread_->StartWithOptions(compositor_thread_options);
+ compositor_task_runner_ = compositor_thread_->task_runner();
compositor_task_runner_->PostTask(
FROM_HERE,
base::Bind(base::IgnoreResult(&ThreadRestrictions::SetIOAllowed),
false));
- blink_platform_impl_->set_compositor_thread(compositor_thread_.get());
}
InputHandlerManagerClient* input_handler_manager_client = NULL;
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698