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

Unified Diff: ui/base/latency_info.h

Issue 18937002: Add UMA/Telemetry stats for end-to-end scroll latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add SCROLL_UPDATE_ORIGINAL_COMPONENT to specifically track scroll_update latency Created 7 years, 5 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: ui/base/latency_info.h
diff --git a/ui/base/latency_info.h b/ui/base/latency_info.h
index 423182a0379ea382d9b40cda4c231511904750ff..9c6846562201dc64deebff5cdd72d87733e3c766 100644
--- a/ui/base/latency_info.h
+++ b/ui/base/latency_info.h
@@ -17,14 +17,15 @@ namespace ui {
enum LatencyComponentType {
// Timestamp when the input event is sent from RenderWidgetHost to renderer.
INPUT_EVENT_LATENCY_RWH_COMPONENT,
- // Timestamp when the injected event is sent from RenderWidgetHost to
- // renderer. For example, in Aura, touch event's LatencyInfo is carried over
- // to the injected gesture event. So gesture event's
- // INPUT_EVENT_LATENCY_RWH_COMPONENT is the timestamp when its original touch
- // events is sent from RWH to renderer. In non-aura platform,
- // INPUT_EVENT_LATENCY_RWH_COMPONENT is the same as
- // INPUT_EVENT_LATENCY_INJECTED_RWH_COMPONENT.
- INPUT_EVENT_LATENCY_INJECTED_RWH_COMPONENT,
+ // Timestamp when the scroll update gesture event is sent from RWH to
+ // renderer. In Aura, touch event's LatencyInfo is carried over to the gesture
+ // event. So gesture event's INPUT_EVENT_LATENCY_RWH_COMPONENT is the
+ // timestamp when its original touch events is sent from RWH to renderer.
+ // In non-aura platform, INPUT_EVENT_LATENCY_SCROLL_UPDATE_RWH_COMPONENT
+ // is the same as INPUT_EVENT_LATENCY_RWH_COMPONENT.
+ INPUT_EVENT_LATENCY_SCROLL_UPDATE_RWH_COMPONENT,
+ // The original timestamp of the touch event which converts to scroll update.
+ INPUT_EVENT_LATENCY_SCROLL_UPDATE_ORIGINAL_COMPONENT,
// Original timestamp for input event (e.g. timestamp from kernel).
INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT,
// Timestamp when the UI event is created.

Powered by Google App Engine
This is Rietveld 408576698