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, |
47 // ---------------------------TERMINAL COMPONENT----------------------------- | 51 // ---------------------------TERMINAL COMPONENT----------------------------- |
48 // TERMINAL COMPONENT is when we show the latency end in chrome://tracing. | 52 // TERMINAL COMPONENT is when we show the latency end in chrome://tracing. |
49 // Timestamp when the mouse event is acked from renderer and it does not | 53 // Timestamp when the mouse event is acked from renderer and it does not |
50 // cause any rendering scheduled. | 54 // cause any rendering scheduled. |
51 INPUT_EVENT_LATENCY_TERMINATED_MOUSE_COMPONENT, | 55 INPUT_EVENT_LATENCY_TERMINATED_MOUSE_COMPONENT, |
52 // Timestamp when the touch event is acked from renderer and it does not | 56 // Timestamp when the touch event is acked from renderer and it does not |
53 // cause any rendering schedueld and does not generate any gesture event. | 57 // cause any rendering schedueld and does not generate any gesture event. |
54 INPUT_EVENT_LATENCY_TERMINATED_TOUCH_COMPONENT, | 58 INPUT_EVENT_LATENCY_TERMINATED_TOUCH_COMPONENT, |
55 // Timestamp when the gesture event is acked from renderer, and it does not | 59 // Timestamp when the gesture event is acked from renderer, and it does not |
56 // cause any rendering schedueld. | 60 // cause any rendering schedueld. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 LatencyMap latency_components; | 149 LatencyMap latency_components; |
146 // The unique id for matching the ASYNC_BEGIN/END trace event. | 150 // The unique id for matching the ASYNC_BEGIN/END trace event. |
147 int64 trace_id; | 151 int64 trace_id; |
148 // Whether a terminal component has been added. | 152 // Whether a terminal component has been added. |
149 bool terminated; | 153 bool terminated; |
150 }; | 154 }; |
151 | 155 |
152 } // namespace ui | 156 } // namespace ui |
153 | 157 |
154 #endif // UI_EVENTS_LATENCY_INFO_H_ | 158 #endif // UI_EVENTS_LATENCY_INFO_H_ |
OLD | NEW |