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

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 e5b02417221d52006be60e31bc30d0c2f07fd788..13406beaa4b19e1142fb21597d838b892898c6b5 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -786,19 +786,19 @@ void RenderThreadImpl::Init(
base::Bind(&RenderThreadImpl::OnSyncMemoryPressure,
base::Unretained(this))));
- int num_raster_threads = 0;
+ int num_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::kNumWorkerThreads);
+ bool parsed_num_worker_threads =
+ base::StringToInt(string_value, &num_worker_threads);
+ DCHECK(parsed_num_worker_threads) << string_value;
+ DCHECK_GT(num_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_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