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

Unified Diff: content/renderer/render_thread_impl.h

Issue 1211153002: Expose a SequencedTaskRunner that runs tasks on raster threads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move TaskGraphRunner and Threads in RasterWorkerPool. Created 5 years, 6 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 | « no previous file | content/renderer/render_thread_impl.cc » ('j') | content/renderer/render_thread_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 59d7c048c862bb80e7410a7bb100d16325f6b20c..bb17ed54d8e137d21a0385b834088897d8304eb7 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -80,6 +80,10 @@ class Extension;
namespace content {
+namespace {
+class RasterWorkerPool;
+}
+
class AppCacheDispatcher;
class AecDumpMessageFilter;
class AudioInputMessageFilter;
@@ -318,6 +322,9 @@ class CONTENT_EXPORT RenderThreadImpl
// on the renderer's main thread.
scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner();
+ // A SequencedTaskRunner instance that runs tasks on the raster worker pool.
+ scoped_refptr<base::SequencedTaskRunner> GetWorkerSequencedTaskRunner();
reveman 2015/06/30 04:47:52 s/scoped_refptr<base::SequencedTaskRunner>/base::S
Daniele Castagna 2015/06/30 15:43:50 Done.
+
// Causes the idle handler to skip sending idle notifications
// on the two next scheduled calls, so idle notifications are
// not sent for at least one notification delay.
@@ -561,8 +568,8 @@ class CONTENT_EXPORT RenderThreadImpl
// regardless of whether |compositor_thread_| is overriden.
scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_;
- // Threads used by compositor for rasterization.
- ScopedVector<base::SimpleThread> compositor_raster_threads_;
+ // Pool of workers used for raster operations (e.g., tile rasterization).
+ scoped_refptr<RasterWorkerPool> raster_worker_pool_;
base::CancelableCallback<void(const IPC::Message&)> main_input_callback_;
scoped_refptr<IPC::MessageFilter> input_event_filter_;
@@ -594,8 +601,6 @@ class CONTENT_EXPORT RenderThreadImpl
scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_;
- scoped_ptr<cc::TaskGraphRunner> compositor_task_graph_runner_;
-
// Compositor settings.
bool is_gpu_rasterization_enabled_;
bool is_gpu_rasterization_forced_;
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | content/renderer/render_thread_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698