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

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: Fix MSAN Use-of-uninitialized-value: Initialize GestureEventDetails Created 3 years, 6 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..260ada94d881688d4fe17af183a09bc5c2b6cfcc 100644
--- a/ui/events/gestures/gesture_provider_aura.cc
+++ b/ui/events/gestures/gesture_provider_aura.cc
@@ -42,13 +42,16 @@ bool GestureProviderAura::OnTouchEvent(TouchEvent* event) {
return true;
}
-void GestureProviderAura::OnTouchEventAck(uint32_t unique_touch_event_id,
- bool event_consumed) {
+void GestureProviderAura::OnTouchEventAck(
+ uint32_t unique_touch_event_id,
+ bool event_consumed,
+ bool is_source_touch_event_set_non_blocking) {
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, event_consumed,
+ is_source_touch_event_set_non_blocking);
}
void GestureProviderAura::OnGestureEvent(const GestureEventData& gesture) {
@@ -82,7 +85,8 @@ 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(), true /* event_consumed */,
+ false /* is_source_touch_event_set_non_blocking */);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698