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

Unified Diff: content/renderer/input/render_widget_input_handler.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
« no previous file with comments | « content/renderer/input/main_thread_event_queue_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input/render_widget_input_handler.cc
diff --git a/content/renderer/input/render_widget_input_handler.cc b/content/renderer/input/render_widget_input_handler.cc
index 878f087f78cbc9009612d5d60bb1b80cee9a864d..ebc894b4d2068aba2f37ca5fd5b85251c2a96468 100644
--- a/content/renderer/input/render_widget_input_handler.cc
+++ b/content/renderer/input/render_widget_input_handler.cc
@@ -420,12 +420,11 @@ void RenderWidgetInputHandler::HandleInputEvent(
TRACE_EVENT_SYNTHETIC_DELAY_END("blink.HandleInputEvent");
- // Note that we can't use handling_event_type_ here since it will be overriden
- // by reentrant calls for events after the paused one.
+ // Note that we can't use handling_event_type_ here since it will be
+ // overridden by reentrant calls for events after the paused one.
bool can_send_ack = !(ignore_ack_for_mouse_move_from_debugger_ &&
input_event.type == WebInputEvent::MouseMove);
- if (dispatch_type == DISPATCH_TYPE_BLOCKING_NOTIFY_MAIN ||
- dispatch_type == DISPATCH_TYPE_NON_BLOCKING_NOTIFY_MAIN) {
+ if (dispatch_type == DISPATCH_TYPE_BLOCKING_NOTIFY_MAIN) {
// |non_blocking| means it was ack'd already by the InputHandlerProxy
// so let the delegate know the event has been handled.
delegate_->NotifyInputEventHandled(input_event.type, ack_result);
« no previous file with comments | « content/renderer/input/main_thread_event_queue_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698