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

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

Issue 25022003: Report LatencyInfo through trace buffer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix compile error Created 7 years, 2 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/gesture_event_filter.cc
diff --git a/content/browser/renderer_host/input/gesture_event_filter.cc b/content/browser/renderer_host/input/gesture_event_filter.cc
index a3b15a7cdc67c8dacea38b6f524dff23e6b66f9c..8639043edd6766a4f1f377cc371ac6d16a1a19c3 100644
--- a/content/browser/renderer_host/input/gesture_event_filter.cc
+++ b/content/browser/renderer_host/input/gesture_event_filter.cc
@@ -251,7 +251,8 @@ bool GestureEventFilter::ShouldForwardForCoalescing(
}
void GestureEventFilter::ProcessGestureAck(InputEventAckState ack_result,
- WebInputEvent::Type type) {
+ WebInputEvent::Type type,
+ const ui::LatencyInfo& latency) {
if (IsGestureEventTypeAsync(type))
return;
@@ -264,7 +265,9 @@ void GestureEventFilter::ProcessGestureAck(InputEventAckState ack_result,
// Ack'ing an event may enqueue additional gesture events. By ack'ing the
// event before the forwarding of queued events below, such additional events
// can be coalesced with existing queued events prior to dispatch.
- client_->OnGestureEventAck(GetGestureEventAwaitingAck(), ack_result);
+ GestureEventWithLatencyInfo event_with_latency = GetGestureEventAwaitingAck();
+ event_with_latency.latency.AddNewLatencyFrom(latency);
+ client_->OnGestureEventAck(event_with_latency, ack_result);
const bool processed = (INPUT_EVENT_ACK_STATE_CONSUMED == ack_result);
if (type == WebInputEvent::GestureFlingCancel) {

Powered by Google App Engine
This is Rietveld 408576698