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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 962833003: UI impl side painting default on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: if single process do not call setNumWorkerThreads in RenderThreadImpl 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
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..7b6148a32cc2fbefd23b20d6b2efaa543d127c01 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -669,7 +669,9 @@ void RenderThreadImpl::Init() {
// threads in GPU raster mode.
if (is_threaded_gpu_rasterization_enabled_)
num_raster_threads = 1;
- cc::TileTaskWorkerPool::SetNumWorkerThreads(num_raster_threads);
+
+ if (!command_line.HasSwitch(switches::kSingleProcess))
reveman 2015/02/27 17:34:15 We need to call SetNumWorkerThreads in the browser
+ cc::TileTaskWorkerPool::SetNumWorkerThreads(num_raster_threads);
#if defined(OS_ANDROID) || defined(OS_LINUX)
if (!command_line.HasSwitch(
« no previous file with comments | « chrome/browser/chromeos/login/screenshot_testing/screenshot_testing_mixin.cc ('k') | ui/compositor/compositor_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698