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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 971943002: Avoid repeat call to set number of worker threads in Single Process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | 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 35bd5e3f4e6f931153c499fdd4310855ce83febd..970f6e844a0e27121471190be58f0afd6a04e8c8 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -669,7 +669,12 @@ void RenderThreadImpl::Init() {
// threads in GPU raster mode.
if (is_threaded_gpu_rasterization_enabled_)
num_raster_threads = 1;
- cc::TileTaskWorkerPool::SetNumWorkerThreads(num_raster_threads);
+
+ // In single process, browser compositor already initialized and set up
+ // worker threads, can't change the number later for the renderer compistor
+ // in the same process.
+ if (!command_line.HasSwitch(switches::kSingleProcess))
+ cc::TileTaskWorkerPool::SetNumWorkerThreads(num_raster_threads);
#if defined(OS_ANDROID) || defined(OS_LINUX)
if (!command_line.HasSwitch(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698