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

Unified Diff: content/renderer/input/input_event_filter.cc

Issue 2713093005: Teach MainThreadEventQueue about touchmove throttling. (Closed)
Patch Set: Created 3 years, 10 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/renderer/input/input_event_filter.cc
diff --git a/content/renderer/input/input_event_filter.cc b/content/renderer/input/input_event_filter.cc
index 7b268c07c9fc14fad66a4de3f19986dfe005c076..053589f8c1d3cf3dd65b1c5131039e89a5472c1b 100644
--- a/content/renderer/input/input_event_filter.cc
+++ b/content/renderer/input/input_event_filter.cc
@@ -126,7 +126,8 @@ void InputEventFilter::NotifyInputEventHandled(
queue->EventHandled(type, result, ack_result);
}
-void InputEventFilter::ProcessRafAlignedInput(int routing_id) {
+void InputEventFilter::ProcessRafAlignedInput(int routing_id,
+ double frame_time_sec) {
DCHECK(main_task_runner_->BelongsToCurrentThread());
scoped_refptr<MainThreadEventQueue> queue;
{
@@ -137,7 +138,7 @@ void InputEventFilter::ProcessRafAlignedInput(int routing_id) {
queue = iter->second;
}
- queue->DispatchRafAlignedInput();
+ queue->DispatchRafAlignedInput(frame_time_sec);
}
void InputEventFilter::OnFilterAdded(IPC::Channel* channel) {

Powered by Google App Engine
This is Rietveld 408576698