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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 143003012: Revert of cc: Remove WorkerPool class and instead use TaskGraphRunner directly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « content/public/common/content_switches.cc ('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 3069e79c1723680ecd1a36315dbf8be9f00cc719..1ddfa2957321a0a4bd4d40801519c170280df811 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -28,7 +28,7 @@
#include "base/threading/thread_restrictions.h"
#include "base/values.h"
#include "cc/base/switches.h"
-#include "cc/resources/raster_worker_pool.h"
+#include "cc/resources/worker_pool.h"
#include "content/child/appcache/appcache_dispatcher.h"
#include "content/child/appcache/appcache_frontend_impl.h"
#include "content/child/child_histogram_message_filter.h"
@@ -443,17 +443,17 @@
// it doesn't have to be the same thread RenderThreadImpl is created on.
allocate_gpu_memory_buffer_thread_checker_.DetachFromThread();
- if (command_line.HasSwitch(switches::kNumRasterThreads)) {
+ if (command_line.HasSwitch(cc::switches::kNumRasterThreads)) {
int num_raster_threads;
std::string string_value =
- command_line.GetSwitchValueASCII(switches::kNumRasterThreads);
+ command_line.GetSwitchValueASCII(cc::switches::kNumRasterThreads);
if (base::StringToInt(string_value, &num_raster_threads) &&
num_raster_threads >= kMinRasterThreads &&
num_raster_threads <= kMaxRasterThreads) {
- cc::RasterWorkerPool::SetNumRasterThreads(num_raster_threads);
+ cc::WorkerPool::SetNumRasterThreads(num_raster_threads);
} else {
LOG(WARNING) << "Failed to parse switch " <<
- switches::kNumRasterThreads << ": " << string_value;
+ cc::switches::kNumRasterThreads << ": " << string_value;
}
}
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698