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

Unified Diff: content/browser/renderer_host/ui_events_helper.cc

Issue 2869823003: [VSync Queue] Plug touch ack to gesture events and flush vsync queue if necessary (Closed)
Patch Set: Use seperate bool for set_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: content/browser/renderer_host/ui_events_helper.cc
diff --git a/content/browser/renderer_host/ui_events_helper.cc b/content/browser/renderer_host/ui_events_helper.cc
index 3e60adbeb5af2dd6f49d300e13fd4360ed9f6b39..8b4407e26de0af0beeb5a064097809e98870277c 100644
--- a/content/browser/renderer_host/ui_events_helper.cc
+++ b/content/browser/renderer_host/ui_events_helper.cc
@@ -90,4 +90,14 @@ bool MakeUITouchEventsFromWebTouchEvents(
return true;
}
+bool InputEventAckStateIsSetNonBlocking(InputEventAckState ack_state) {
+ switch (ack_state) {
+ case INPUT_EVENT_ACK_STATE_SET_NON_BLOCKING:
+ case INPUT_EVENT_ACK_STATE_SET_NON_BLOCKING_DUE_TO_FLING:
+ return true;
+ default:
+ return false;
+ }
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698