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

Side by Side Diff: ui/events/latency_info.h

Issue 365463003: Implement scroll handler latency tracking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_EVENTS_LATENCY_INFO_H_ 5 #ifndef UI_EVENTS_LATENCY_INFO_H_
6 #define UI_EVENTS_LATENCY_INFO_H_ 6 #define UI_EVENTS_LATENCY_INFO_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 14 matching lines...) Expand all
25 // ---------------------------NORMAL COMPONENT------------------------------- 25 // ---------------------------NORMAL COMPONENT-------------------------------
26 // Timestamp when the scroll update gesture event is sent from RWH to 26 // Timestamp when the scroll update gesture event is sent from RWH to
27 // renderer. In Aura, touch event's LatencyInfo is carried over to the gesture 27 // renderer. In Aura, touch event's LatencyInfo is carried over to the gesture
28 // event. So gesture event's INPUT_EVENT_LATENCY_RWH_COMPONENT is the 28 // event. So gesture event's INPUT_EVENT_LATENCY_RWH_COMPONENT is the
29 // timestamp when its original touch events is sent from RWH to renderer. 29 // timestamp when its original touch events is sent from RWH to renderer.
30 // In non-aura platform, INPUT_EVENT_LATENCY_SCROLL_UPDATE_RWH_COMPONENT 30 // In non-aura platform, INPUT_EVENT_LATENCY_SCROLL_UPDATE_RWH_COMPONENT
31 // is the same as INPUT_EVENT_LATENCY_RWH_COMPONENT. 31 // is the same as INPUT_EVENT_LATENCY_RWH_COMPONENT.
32 INPUT_EVENT_LATENCY_SCROLL_UPDATE_RWH_COMPONENT, 32 INPUT_EVENT_LATENCY_SCROLL_UPDATE_RWH_COMPONENT,
33 // The original timestamp of the touch event which converts to scroll update. 33 // The original timestamp of the touch event which converts to scroll update.
34 INPUT_EVENT_LATENCY_SCROLL_UPDATE_ORIGINAL_COMPONENT, 34 INPUT_EVENT_LATENCY_SCROLL_UPDATE_ORIGINAL_COMPONENT,
35 // The timestamp when the scroll event reached blink (e.g. a scroll handler).
36 INPUT_EVENT_LATENCY_SCROLL_UPDATE_BLINK_COMPONENT,
35 // Original timestamp for input event (e.g. timestamp from kernel). 37 // Original timestamp for input event (e.g. timestamp from kernel).
36 INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, 38 INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT,
37 // Timestamp when the UI event is created. 39 // Timestamp when the UI event is created.
38 INPUT_EVENT_LATENCY_UI_COMPONENT, 40 INPUT_EVENT_LATENCY_UI_COMPONENT,
39 // This is special component indicating there is rendering scheduled for 41 // This is special component indicating there is rendering scheduled for
40 // the event associated with this LatencyInfo. 42 // the event associated with this LatencyInfo.
41 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_COMPONENT, 43 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_COMPONENT,
42 // Timestamp when the touch event is acked. 44 // Timestamp when the touch event is acked.
43 INPUT_EVENT_LATENCY_ACKED_TOUCH_COMPONENT, 45 INPUT_EVENT_LATENCY_ACKED_TOUCH_COMPONENT,
44 // Frame number when a window snapshot was requested. The snapshot 46 // Frame number when a window snapshot was requested. The snapshot
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 LatencyMap latency_components; 151 LatencyMap latency_components;
150 // The unique id for matching the ASYNC_BEGIN/END trace event. 152 // The unique id for matching the ASYNC_BEGIN/END trace event.
151 int64 trace_id; 153 int64 trace_id;
152 // Whether a terminal component has been added. 154 // Whether a terminal component has been added.
153 bool terminated; 155 bool terminated;
154 }; 156 };
155 157
156 } // namespace ui 158 } // namespace ui
157 159
158 #endif // UI_EVENTS_LATENCY_INFO_H_ 160 #endif // UI_EVENTS_LATENCY_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698