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 29 matching lines...) Expand all Loading... |
40 // This is special component indicating there is rendering scheduled for | 40 // This is special component indicating there is rendering scheduled for |
41 // the event associated with this LatencyInfo on impl thread. | 41 // the event associated with this LatencyInfo on impl thread. |
42 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT, | 42 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT, |
43 // Timestamp when a scroll update is forwarded to the main thread. | 43 // Timestamp when a scroll update is forwarded to the main thread. |
44 INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT, | 44 INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT, |
45 // Timestamp when the event's ack is received by the RWH. | 45 // Timestamp when the event's ack is received by the RWH. |
46 INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT, | 46 INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT, |
47 // Frame number when a window snapshot was requested. The snapshot | 47 // Frame number when a window snapshot was requested. The snapshot |
48 // is taken when the rendering results actually reach the screen. | 48 // is taken when the rendering results actually reach the screen. |
49 WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT, | 49 WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT, |
50 // Frame number for a snapshot requested via | |
51 // gpuBenchmarking.beginWindowSnapshotPNG | |
52 // TODO(vkuzkokov): remove when patch adding this hits Stable | |
53 WINDOW_OLD_SNAPSHOT_FRAME_NUMBER_COMPONENT, | |
54 // Timestamp when a tab is requested to be shown. | 50 // Timestamp when a tab is requested to be shown. |
55 TAB_SHOW_COMPONENT, | 51 TAB_SHOW_COMPONENT, |
56 // Timestamp when the frame is swapped in renderer. | 52 // Timestamp when the frame is swapped in renderer. |
57 INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, | 53 INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, |
58 // Timestamp of when the browser process receives a buffer swap notification | 54 // Timestamp of when the browser process receives a buffer swap notification |
59 // from the renderer. | 55 // from the renderer. |
60 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT, | 56 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT, |
61 // Timestamp of when the gpu service began swap buffers, unlike | 57 // Timestamp of when the gpu service began swap buffers, unlike |
62 // INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT which measures after. | 58 // INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT which measures after. |
63 INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT, | 59 INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 173 |
178 // The unique id for matching the ASYNC_BEGIN/END trace event. | 174 // The unique id for matching the ASYNC_BEGIN/END trace event. |
179 int64 trace_id; | 175 int64 trace_id; |
180 // Whether a terminal component has been added. | 176 // Whether a terminal component has been added. |
181 bool terminated; | 177 bool terminated; |
182 }; | 178 }; |
183 | 179 |
184 } // namespace ui | 180 } // namespace ui |
185 | 181 |
186 #endif // UI_EVENTS_LATENCY_INFO_H_ | 182 #endif // UI_EVENTS_LATENCY_INFO_H_ |
OLD | NEW |