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

Unified Diff: ui/events/blink/blink_event_util.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/blink/blink_event_util.cc
diff --git a/ui/events/blink/blink_event_util.cc b/ui/events/blink/blink_event_util.cc
index 349e0ed4cce91d51e5ba3feb339dce3c9f85a8cd..32dfebc307ee229e2f8a3df1e872ee5676e4a39d 100644
--- a/ui/events/blink/blink_event_util.cc
+++ b/ui/events/blink/blink_event_util.cc
@@ -627,6 +627,17 @@ WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details,
break;
}
+ switch (details.source_touch_event_result()) {
+ case ER_IGNORED_NON_BLOCKING:
+ gesture.source_touch_event_dispatch_type =
+ WebInputEvent::DispatchType::kEventNonBlocking;
+ break;
+ default:
+ gesture.source_touch_event_dispatch_type =
+ WebInputEvent::DispatchType::kBlocking;
+ break;
+ }
+
gesture.unique_touch_event_id = unique_touch_event_id;
switch (details.type()) {

Powered by Google App Engine
This is Rietveld 408576698