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

Unified Diff: ui/aura/window_event_dispatcher.cc

Issue 2951973002: Reland of [VSync Queue] Plug touch ack to gesture events and flush vsync queue if necessary (Closed)
Patch Set: 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
« no previous file with comments | « ui/aura/window_event_dispatcher.h ('k') | ui/aura/window_event_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_event_dispatcher.cc
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
index dc286d0826545413afb7ddb91314056bf84d439d..ea3e2fdc2b9e3f007ee2751e08050bedccbde851 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -180,12 +180,15 @@
return DispatchMouseEnterOrExit(window, event, ui::ET_MOUSE_EXITED);
}
-void WindowEventDispatcher::ProcessedTouchEvent(uint32_t unique_event_id,
- Window* window,
- ui::EventResult result) {
+void WindowEventDispatcher::ProcessedTouchEvent(
+ uint32_t unique_event_id,
+ Window* window,
+ ui::EventResult result,
+ bool is_source_touch_event_set_non_blocking) {
ui::GestureRecognizer::Gestures gestures =
- ui::GestureRecognizer::Get()->AckTouchEvent(unique_event_id, result,
- window);
+ ui::GestureRecognizer::Get()->AckTouchEvent(
+ unique_event_id, result, is_source_touch_event_set_non_blocking,
+ window);
DispatchDetails details = ProcessGestures(window, std::move(gestures));
if (details.dispatcher_destroyed)
return;
@@ -555,7 +558,8 @@
Window* window = static_cast<Window*>(target);
ui::GestureRecognizer::Gestures gestures =
ui::GestureRecognizer::Get()->AckTouchEvent(
- touchevent.unique_event_id(), event.result(), window);
+ touchevent.unique_event_id(), event.result(),
+ false /* is_source_touch_event_set_non_blocking */, window);
return ProcessGestures(window, std::move(gestures));
}
« no previous file with comments | « ui/aura/window_event_dispatcher.h ('k') | ui/aura/window_event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698