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

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: Don't ack mouse move right away send them unthrottled Created 4 years, 5 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/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..c20fd82d6cc626ce0bb8becad3930f8ac0b5fd66 100644
--- a/content/renderer/input/render_widget_input_handler.cc
+++ b/content/renderer/input/render_widget_input_handler.cc
@@ -424,8 +424,7 @@ void RenderWidgetInputHandler::HandleInputEvent(
// 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);

Powered by Google App Engine
This is Rietveld 408576698