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

Unified Diff: content/browser/renderer_host/input/buffered_input_router.cc

Issue 25022003: Report LatencyInfo through trace buffer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 3 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/input/buffered_input_router.cc
diff --git a/content/browser/renderer_host/input/buffered_input_router.cc b/content/browser/renderer_host/input/buffered_input_router.cc
index 97b565311d52fd8d1f3e49585d7d029f28004732..919201e7c75dc2d521d4fbb92ef0049d3ae1eac7 100644
--- a/content/browser/renderer_host/input/buffered_input_router.cc
+++ b/content/browser/renderer_host/input/buffered_input_router.cc
@@ -228,7 +228,9 @@ void BufferedInputRouter::OnWebInputEventAck(
// HandleKeyboardEvent destroys this BufferedInputRouter).
} else if (web_event.type == WebInputEvent::MouseWheel) {
ack_handler_->OnWheelEventAck(
- static_cast<const WebMouseWheelEvent&>(web_event), acked_result);
+ MouseWheelEventWithLatencyInfo(
+ static_cast<const WebMouseWheelEvent&>(web_event), latency_info),
+ acked_result);
} else if (WebInputEvent::isTouchEventType(web_event.type)) {
if (ack_from_input_queue) {
DCHECK_GT(queued_touch_count_, 0);
@@ -240,7 +242,9 @@ void BufferedInputRouter::OnWebInputEventAck(
acked_result);
} else if (WebInputEvent::isGestureEventType(web_event.type)) {
ack_handler_->OnGestureEventAck(
- static_cast<const WebGestureEvent&>(web_event), acked_result);
+ GestureEventWithLatencyInfo(
+ static_cast<const WebGestureEvent&>(web_event), latency_info),
+ acked_result);
} else
NOTREACHED() << "Unexpected WebInputEvent in OnWebInputEventAck";
}

Powered by Google App Engine
This is Rietveld 408576698