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

Unified Diff: content/renderer/input/input_event_filter.h

Issue 363383002: Forward input tasks to the Blink scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only forward input tasks for now. Created 6 years, 3 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/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/input/input_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input/input_event_filter.h
diff --git a/content/renderer/input/input_event_filter.h b/content/renderer/input/input_event_filter.h
index a80b9f8c625b24307b5f2f6fea9533d8472beabd..0e39592a47c2efa180dbd2c3d094a13419f26b65 100644
--- a/content/renderer/input/input_event_filter.h
+++ b/content/renderer/input/input_event_filter.h
@@ -18,6 +18,7 @@
namespace base {
class MessageLoopProxy;
+class SingleThreadTaskRunner;
}
namespace IPC {
@@ -38,8 +39,10 @@ namespace content {
class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient,
public IPC::MessageFilter {
public:
- InputEventFilter(IPC::Listener* main_listener,
- const scoped_refptr<base::MessageLoopProxy>& target_loop);
+ InputEventFilter(
+ IPC::Listener* main_listener,
+ const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner,
+ const scoped_refptr<base::MessageLoopProxy>& target_loop);
// The |handler| is invoked on the thread associated with |target_loop| to
// handle input events matching the filtered routes.
@@ -73,7 +76,7 @@ class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient,
void SendMessage(scoped_ptr<IPC::Message> message);
void SendMessageOnIOThread(scoped_ptr<IPC::Message> message);
- scoped_refptr<base::MessageLoopProxy> main_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
IPC::Listener* main_listener_;
// The sender_ only gets invoked on the thread corresponding to io_loop_.
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/input/input_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698