OLD | NEW |
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 <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 INPUT_EVENT_LATENCY_TERMINATED_MOUSE_COMPONENT, | 45 INPUT_EVENT_LATENCY_TERMINATED_MOUSE_COMPONENT, |
46 // Timestamp when the touch event is acked from renderer and it does not | 46 // Timestamp when the touch event is acked from renderer and it does not |
47 // cause any rendering schedueld and does not generate any gesture event. | 47 // cause any rendering schedueld and does not generate any gesture event. |
48 INPUT_EVENT_LATENCY_TERMINATED_TOUCH_COMPONENT, | 48 INPUT_EVENT_LATENCY_TERMINATED_TOUCH_COMPONENT, |
49 // Timestamp when the gesture event is acked from renderer, and it does not | 49 // Timestamp when the gesture event is acked from renderer, and it does not |
50 // cause any rendering schedueld. | 50 // cause any rendering schedueld. |
51 INPUT_EVENT_LATENCY_TERMINATED_GESTURE_COMPONENT, | 51 INPUT_EVENT_LATENCY_TERMINATED_GESTURE_COMPONENT, |
52 // Timestamp when the frame is swapped (i.e. when the rendering caused by | 52 // Timestamp when the frame is swapped (i.e. when the rendering caused by |
53 // input event actually takes effect). | 53 // input event actually takes effect). |
54 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT, | 54 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT, |
| 55 // Frame number when a window snapshot was requested. The snapshot |
| 56 // is taken when the rendering results actually reach the screen. |
| 57 WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT |
55 }; | 58 }; |
56 | 59 |
57 struct EVENTS_EXPORT LatencyInfo { | 60 struct EVENTS_EXPORT LatencyInfo { |
58 struct LatencyComponent { | 61 struct LatencyComponent { |
59 // Nondecreasing number that can be used to determine what events happened | 62 // Nondecreasing number that can be used to determine what events happened |
60 // in the component at the time this struct was sent on to the next | 63 // in the component at the time this struct was sent on to the next |
61 // component. | 64 // component. |
62 int64 sequence_number; | 65 int64 sequence_number; |
63 // Average time of events that happened in this component. | 66 // Average time of events that happened in this component. |
64 base::TimeTicks event_time; | 67 base::TimeTicks event_time; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 LatencyMap latency_components; | 112 LatencyMap latency_components; |
110 // The unique id for matching the ASYNC_BEGIN/END trace event. | 113 // The unique id for matching the ASYNC_BEGIN/END trace event. |
111 int64 trace_id; | 114 int64 trace_id; |
112 // Whether a terminal component has been added. | 115 // Whether a terminal component has been added. |
113 bool terminated; | 116 bool terminated; |
114 }; | 117 }; |
115 | 118 |
116 } // namespace ui | 119 } // namespace ui |
117 | 120 |
118 #endif // UI_EVENTS_LATENCY_INFO_H_ | 121 #endif // UI_EVENTS_LATENCY_INFO_H_ |
OLD | NEW |