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

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: Address reveman's nits. 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') | no next file with comments »
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..a6343d1f31883197324416dae3a3b223ef2561fc 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -103,6 +103,7 @@ class NetInfoDispatcher;
class P2PSocketDispatcher;
class PeerConnectionDependencyFactory;
class PeerConnectionTracker;
+class RasterWorkerPool;
class RenderProcessObserver;
class RendererBlinkPlatformImpl;
class RendererDemuxerAndroid;
@@ -318,6 +319,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.
+ base::SequencedTaskRunner* GetWorkerSequencedTaskRunner();
+
// 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 +565,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 +598,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698