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

Unified Diff: content/browser/renderer_host/input/touch_event_queue.cc

Issue 521453002: Defer flushing the touch queue when all touch handlers removed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Aura unit test fix Created 6 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/browser/renderer_host/input/touch_event_queue.cc
diff --git a/content/browser/renderer_host/input/touch_event_queue.cc b/content/browser/renderer_host/input/touch_event_queue.cc
index 946dd4283a8ce02f4df76124ac15a66da991bb1f..e2ead0b7c3786c29eeb86f0894dcfc9f03e8c4ed 100644
--- a/content/browser/renderer_host/input/touch_event_queue.cc
+++ b/content/browser/renderer_host/input/touch_event_queue.cc
@@ -637,10 +637,6 @@ void TouchEventQueue::OnHasTouchEventHandlers(bool has_handlers) {
pending_async_touchmove_.reset();
if (timeout_handler_)
timeout_handler_->Reset();
- if (!touch_queue_.empty())
- ProcessTouchAck(INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS, LatencyInfo());
- // As there is no touch handler, ack'ing the event should flush the queue.
- DCHECK(touch_queue_.empty());
}
}

Powered by Google App Engine
This is Rietveld 408576698