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

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: 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 23a8041d9902b8c28c81915c9a5ba84ae055e9e3..80c975edcd61f8d77451ffecacc75aaec96e9772 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -317,6 +317,10 @@ class CONTENT_EXPORT RenderThreadImpl
// on the renderer's main thread.
scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner();
+ // Returns a SequencedTaskRunner instance that runs tasks on worker
+ // |compositor_raster_threads_|.
+ scoped_refptr<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.
@@ -566,6 +570,9 @@ class CONTENT_EXPORT RenderThreadImpl
// Threads used by compositor for rasterization.
ScopedVector<base::SimpleThread> compositor_raster_threads_;
+ // Task runner that runs tasks on |compositor_raster_threads_|.
+ scoped_refptr<base::SequencedTaskRunner> worker_task_runner_;
+
base::CancelableCallback<void(const IPC::Message&)> main_input_callback_;
scoped_refptr<IPC::MessageFilter> input_event_filter_;
scoped_ptr<InputHandlerManager> input_handler_manager_;
« 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