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

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

Issue 628763003: Support InputRouter recycling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 2 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/gesture_event_queue.cc
diff --git a/content/browser/renderer_host/input/gesture_event_queue.cc b/content/browser/renderer_host/input/gesture_event_queue.cc
index b16923be17f7234c5e4d69ceb04979253800eca9..af2d6c429bb1dcd8f50dcdf361647effdb62a657 100644
--- a/content/browser/renderer_host/input/gesture_event_queue.cc
+++ b/content/browser/renderer_host/input/gesture_event_queue.cc
@@ -245,6 +245,16 @@ void GestureEventQueue::ForwardGestureEvent(
client_->SendGestureEventImmediately(gesture_event);
}
+void GestureEventQueue::Recycle() {
+ fling_in_progress_ = false;
+ scrolling_in_progress_ = false;
+ ignore_next_ack_ = false;
+ coalesced_gesture_events_.clear();
+ debouncing_deferral_queue_.clear();
+ touchpad_tap_suppression_controller_.Reset();
+ touchscreen_tap_suppression_controller_.Reset();
+}
+
void GestureEventQueue::SendScrollEndingEventsNow() {
scrolling_in_progress_ = false;
if (debouncing_deferral_queue_.empty())

Powered by Google App Engine
This is Rietveld 408576698