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

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

Issue 2401853003: CL for src perf tryjob to run smoothness.scrolling_tough_ad_cases benchmark on android-nexus5X plat… (Closed)
Patch Set: Created 4 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | third_party/WebKit/public/platform/WebInputEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a0a80e382ce04fa2dd27c4e8f0213f6f0fecaa16..07e4e7d05fe208681fa8848b846e45650e6c46d6 100644
--- a/content/browser/renderer_host/input/gesture_event_queue.cc
+++ b/content/browser/renderer_host/input/gesture_event_queue.cc
@@ -87,7 +87,6 @@ void GestureEventQueue::QueueEvent(
!ShouldForwardForTapSuppression(gesture_event)) {
return;
}
-
QueueAndForwardIfNecessary(gesture_event);
}
@@ -306,10 +305,15 @@ void GestureEventQueue::SendScrollEndingEventsNow() {
return;
GestureQueue debouncing_deferral_queue;
debouncing_deferral_queue.swap(debouncing_deferral_queue_);
- for (GestureQueue::const_iterator it = debouncing_deferral_queue.begin();
+ for (GestureQueue::iterator it = debouncing_deferral_queue.begin();
it != debouncing_deferral_queue.end(); it++) {
if (ShouldForwardForGFCFiltering(*it) &&
ShouldForwardForTapSuppression(*it)) {
+ if (it->event.type == WebInputEvent::GestureScrollEnd &&
+ it < debouncing_deferral_queue.end() - 1 &&
+ (it + 1)->event.type == WebInputEvent::GestureFlingStart) {
+ it->event.data.scrollEnd.flingMightHappenNext = true;
+ }
QueueAndForwardIfNecessary(*it);
}
}
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | third_party/WebKit/public/platform/WebInputEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698