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: ui/events/gestures/gesture_provider_aura.cc

Issue 2869823003: [VSync Queue] Plug touch ack to gesture events and flush vsync queue if necessary (Closed)
Patch Set: dtapuska's comment: Use ack to determine blocking vs. non-blocking Created 3 years, 7 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: ui/events/gestures/gesture_provider_aura.cc
diff --git a/ui/events/gestures/gesture_provider_aura.cc b/ui/events/gestures/gesture_provider_aura.cc
index b8e83b25a2905326565ebee8e67fee9c11a263de..42fbf071760e112290153bea51a5619b5d2e3771 100644
--- a/ui/events/gestures/gesture_provider_aura.cc
+++ b/ui/events/gestures/gesture_provider_aura.cc
@@ -43,12 +43,11 @@ bool GestureProviderAura::OnTouchEvent(TouchEvent* event) {
}
void GestureProviderAura::OnTouchEventAck(uint32_t unique_touch_event_id,
- bool event_consumed) {
+ EventResult result) {
DCHECK(pending_gestures_.empty());
DCHECK(!handling_event_);
base::AutoReset<bool> handling_event(&handling_event_, true);
- filtered_gesture_provider_.OnTouchEventAck(unique_touch_event_id,
- event_consumed);
+ filtered_gesture_provider_.OnTouchEventAck(unique_touch_event_id, result);
}
void GestureProviderAura::OnGestureEvent(const GestureEventData& gesture) {
@@ -82,7 +81,7 @@ void GestureProviderAura::OnTouchEnter(int pointer_id, float x, float y) {
touch_event->set_root_location_f(point);
OnTouchEvent(touch_event.get());
- OnTouchEventAck(touch_event->unique_event_id(), true);
+ OnTouchEventAck(touch_event->unique_event_id(), ER_CONSUMED);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698