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

Unified Diff: cc/resources/pixel_buffer_raster_worker_pool.cc

Issue 160023002: cc: Only make num_threads - 1 SkPicture clones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sw renderer too Created 6 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 | « cc/resources/picture.cc ('k') | cc/resources/raster_worker_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/pixel_buffer_raster_worker_pool.cc
diff --git a/cc/resources/pixel_buffer_raster_worker_pool.cc b/cc/resources/pixel_buffer_raster_worker_pool.cc
index a7a3636f598846b40244d8427784342ceaf6fea9..0bf2d3f2b431b6e9c7e5f00e43e19d7bdf267066 100644
--- a/cc/resources/pixel_buffer_raster_worker_pool.cc
+++ b/cc/resources/pixel_buffer_raster_worker_pool.cc
@@ -25,15 +25,6 @@ bool WasCanceled(const internal::RasterWorkerPoolTask* task) {
return !task->HasFinishedRunning();
}
-class RasterTaskGraphRunner : public internal::TaskGraphRunner {
- public:
- RasterTaskGraphRunner()
- : internal::TaskGraphRunner(RasterWorkerPool::GetNumRasterThreads(),
- "CompositorRaster") {}
-};
-base::LazyInstance<RasterTaskGraphRunner>::Leaky g_task_graph_runner =
- LAZY_INSTANCE_INITIALIZER;
-
} // namespace
// static
@@ -42,7 +33,7 @@ scoped_ptr<RasterWorkerPool> PixelBufferRasterWorkerPool::Create(
ContextProvider* context_provider,
size_t max_transfer_buffer_usage_bytes) {
return make_scoped_ptr<RasterWorkerPool>(
- new PixelBufferRasterWorkerPool(g_task_graph_runner.Pointer(),
+ new PixelBufferRasterWorkerPool(GetTaskGraphRunner(),
resource_provider,
context_provider,
max_transfer_buffer_usage_bytes));
« no previous file with comments | « cc/resources/picture.cc ('k') | cc/resources/raster_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698