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

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

Issue 2162143002: Don't use PostTask queueing between compositor and main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix fairness of post tasks it was causing some tests to fail Created 4 years, 4 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/content_tests.gypi ('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 ce49971a8293ff91cc4ddd40fbe5fe1a29864920..55545c5f262b7da68443bbcf07bdac7b80536cc1 100644
--- a/content/renderer/input/input_event_filter.h
+++ b/content/renderer/input/input_event_filter.h
@@ -78,10 +78,10 @@ class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient,
bool OnMessageReceived(const IPC::Message& message) override;
// MainThreadEventQueueClient methods:
- void SendEventToMainThread(int routing_id,
- const blink::WebInputEvent* event,
- const ui::LatencyInfo& latency,
- InputEventDispatchType dispatch_type) override;
+ void HandleEventOnMainThread(int routing_id,
+ const blink::WebInputEvent* event,
+ const ui::LatencyInfo& latency,
+ InputEventDispatchType dispatch_type) override;
// Send an InputEventAck IPC message. |touch_event_id| represents
// the unique event id for the original WebTouchEvent and should
// be 0 if otherwise. See WebInputEventTraits::GetUniqueTouchEventId.
@@ -116,7 +116,7 @@ class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient,
std::set<int> routes_;
using RouteQueueMap =
- std::unordered_map<int, std::unique_ptr<MainThreadEventQueue>>;
+ std::unordered_map<int, scoped_refptr<MainThreadEventQueue>>;
RouteQueueMap route_queues_;
// Used to intercept overscroll notifications while an event is being
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/input/input_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698