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 <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 // Timestamp when the UI event is created. | 37 // Timestamp when the UI event is created. |
38 INPUT_EVENT_LATENCY_UI_COMPONENT, | 38 INPUT_EVENT_LATENCY_UI_COMPONENT, |
39 // This is special component indicating there is rendering scheduled for | 39 // This is special component indicating there is rendering scheduled for |
40 // the event associated with this LatencyInfo. | 40 // the event associated with this LatencyInfo. |
41 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_COMPONENT, | 41 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_COMPONENT, |
42 // Timestamp when the touch event is acked. | 42 // Timestamp when the touch event is acked. |
43 INPUT_EVENT_LATENCY_ACKED_TOUCH_COMPONENT, | 43 INPUT_EVENT_LATENCY_ACKED_TOUCH_COMPONENT, |
44 // Frame number when a window snapshot was requested. The snapshot | 44 // Frame number when a window snapshot was requested. The snapshot |
45 // is taken when the rendering results actually reach the screen. | 45 // is taken when the rendering results actually reach the screen. |
46 WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT, | 46 WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT, |
47 // Frame number for a snapshot requested via | |
48 // gpuBenchmarking.beginWindowSnapshotPNG | |
49 // TODO(vkuzkokov): remove when patch adding this hits Stable | |
50 WINDOW_OLD_SNAPSHOT_FRAME_NUMBER_COMPONENT, | |
51 // ---------------------------TERMINAL COMPONENT----------------------------- | 47 // ---------------------------TERMINAL COMPONENT----------------------------- |
52 // TERMINAL COMPONENT is when we show the latency end in chrome://tracing. | 48 // TERMINAL COMPONENT is when we show the latency end in chrome://tracing. |
53 // Timestamp when the mouse event is acked from renderer and it does not | 49 // Timestamp when the mouse event is acked from renderer and it does not |
54 // cause any rendering scheduled. | 50 // cause any rendering scheduled. |
55 INPUT_EVENT_LATENCY_TERMINATED_MOUSE_COMPONENT, | 51 INPUT_EVENT_LATENCY_TERMINATED_MOUSE_COMPONENT, |
56 // Timestamp when the touch event is acked from renderer and it does not | 52 // Timestamp when the touch event is acked from renderer and it does not |
57 // cause any rendering schedueld and does not generate any gesture event. | 53 // cause any rendering schedueld and does not generate any gesture event. |
58 INPUT_EVENT_LATENCY_TERMINATED_TOUCH_COMPONENT, | 54 INPUT_EVENT_LATENCY_TERMINATED_TOUCH_COMPONENT, |
59 // Timestamp when the gesture event is acked from renderer, and it does not | 55 // Timestamp when the gesture event is acked from renderer, and it does not |
60 // cause any rendering schedueld. | 56 // cause any rendering schedueld. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 LatencyMap latency_components; | 145 LatencyMap latency_components; |
150 // The unique id for matching the ASYNC_BEGIN/END trace event. | 146 // The unique id for matching the ASYNC_BEGIN/END trace event. |
151 int64 trace_id; | 147 int64 trace_id; |
152 // Whether a terminal component has been added. | 148 // Whether a terminal component has been added. |
153 bool terminated; | 149 bool terminated; |
154 }; | 150 }; |
155 | 151 |
156 } // namespace ui | 152 } // namespace ui |
157 | 153 |
158 #endif // UI_EVENTS_LATENCY_INFO_H_ | 154 #endif // UI_EVENTS_LATENCY_INFO_H_ |
OLD | NEW |