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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2020243004: content: Rename num raster threads -> num worker threads. Base URL: https://chromium.googlesource.com/chromium/src.git@categorized_worker_pool_3
Patch Set: build break Created 4 years, 7 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 d17d359334c3533da6d5266502ddf2ba036d1260..20c5675533105db80b7ce3497e8a9179a272b742 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -787,19 +787,19 @@ void RenderThreadImpl::Init(
base::Bind(&RenderThreadImpl::OnSyncMemoryPressure,
base::Unretained(this))));
- int num_raster_threads = 0;
+ int num_categorized_worker_threads = 0;
std::string string_value =
- command_line.GetSwitchValueASCII(switches::kNumRasterThreads);
- bool parsed_num_raster_threads =
- base::StringToInt(string_value, &num_raster_threads);
- DCHECK(parsed_num_raster_threads) << string_value;
- DCHECK_GT(num_raster_threads, 0);
+ command_line.GetSwitchValueASCII(switches::kNumCategorizedWorkerThreads);
+ bool parsed_num_categorized_worker_threads =
+ base::StringToInt(string_value, &num_categorized_worker_threads);
+ DCHECK(parsed_num_categorized_worker_threads) << string_value;
+ DCHECK_GT(num_categorized_worker_threads, 0);
// TODO(vmpstr): If the flag sticks, we should clean it up and always have
// image decode tasks.
are_image_decode_tasks_enabled_ = true;
- categorized_worker_pool_->Start(num_raster_threads);
+ categorized_worker_pool_->Start(num_categorized_worker_threads);
// TODO(boliu): In single process, browser main loop should set up the
// discardable memory manager, and should skip this if kSingleProcess.

Powered by Google App Engine
This is Rietveld 408576698