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

Unified Diff: content/renderer/input/input_handler_manager.cc

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
Index: content/renderer/input/input_handler_manager.cc
diff --git a/content/renderer/input/input_handler_manager.cc b/content/renderer/input/input_handler_manager.cc
index 0821d8225fcbf5446f1a42d2b0068413ff4a3577..99a22ca264055249a8ff7880a4dbba27c0e4bd74 100644
--- a/content/renderer/input/input_handler_manager.cc
+++ b/content/renderer/input/input_handler_manager.cc
@@ -189,23 +189,7 @@ void InputHandlerManager::NotifyInputEventHandledOnMainThread(
int routing_id,
blink::WebInputEvent::Type type,
InputEventAckState ack_result) {
- task_runner_->PostTask(
- FROM_HERE,
- base::Bind(
- &InputHandlerManager::NotifyInputEventHandledOnCompositorThread,
- base::Unretained(this), routing_id, type, ack_result));
-}
-
-void InputHandlerManager::NotifyInputEventHandledOnCompositorThread(
- int routing_id,
- blink::WebInputEvent::Type handled_type,
- InputEventAckState ack_result) {
- DCHECK(task_runner_->BelongsToCurrentThread());
- auto it = input_handlers_.find(routing_id);
- if (it == input_handlers_.end())
- return;
-
- client_->NotifyInputEventHandled(routing_id, handled_type, ack_result);
+ client_->NotifyInputEventHandled(routing_id, type, ack_result);
}
InputEventAckState InputHandlerManager::HandleInputEvent(
« no previous file with comments | « content/renderer/input/input_handler_manager.h ('k') | content/renderer/input/input_handler_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698