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_LATENCY_LATENCY_INFO_H_ | 5 #ifndef UI_LATENCY_LATENCY_INFO_H_ |
6 #define UI_LATENCY_LATENCY_INFO_H_ | 6 #define UI_LATENCY_LATENCY_INFO_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // This is special component indicating there is rendering scheduled for | 61 // This is special component indicating there is rendering scheduled for |
62 // the event associated with this LatencyInfo on main thread. | 62 // the event associated with this LatencyInfo on main thread. |
63 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_MAIN_COMPONENT, | 63 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_MAIN_COMPONENT, |
64 // This is special component indicating there is rendering scheduled for | 64 // This is special component indicating there is rendering scheduled for |
65 // the event associated with this LatencyInfo on impl thread. | 65 // the event associated with this LatencyInfo on impl thread. |
66 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT, | 66 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT, |
67 // Timestamp when a scroll update is forwarded to the main thread. | 67 // Timestamp when a scroll update is forwarded to the main thread. |
68 INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT, | 68 INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT, |
69 // Timestamp when the event's ack is received by the RWH. | 69 // Timestamp when the event's ack is received by the RWH. |
70 INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT, | 70 INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT, |
71 // Frame number when a window snapshot was requested. The snapshot | 71 // Frame number when a browser snapshot was requested. The snapshot |
72 // is taken when the rendering results actually reach the screen. | 72 // is taken when the rendering results actually reach the screen. |
73 WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT, | 73 BROWSER_SNAPSHOT_FRAME_NUMBER_COMPONENT, |
74 // Timestamp when a tab is requested to be shown. | 74 // Timestamp when a tab is requested to be shown. |
75 TAB_SHOW_COMPONENT, | 75 TAB_SHOW_COMPONENT, |
76 // Timestamp when the frame is swapped in renderer. | 76 // Timestamp when the frame is swapped in renderer. |
77 INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, | 77 INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, |
78 // Timestamp of when the browser process receives a buffer swap notification | 78 // Timestamp of when the browser process receives a buffer swap notification |
79 // from the renderer. | 79 // from the renderer. |
80 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT, | 80 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT, |
81 // Timestamp of when the gpu service began swap buffers, unlike | 81 // Timestamp of when the gpu service began swap buffers, unlike |
82 // INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT which measures after. | 82 // INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT which measures after. |
83 INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT, | 83 INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT, |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 #if !defined(OS_IOS) | 252 #if !defined(OS_IOS) |
253 friend struct IPC::ParamTraits<ui::LatencyInfo>; | 253 friend struct IPC::ParamTraits<ui::LatencyInfo>; |
254 friend struct mojo::StructTraits<ui::mojom::LatencyInfoDataView, | 254 friend struct mojo::StructTraits<ui::mojom::LatencyInfoDataView, |
255 ui::LatencyInfo>; | 255 ui::LatencyInfo>; |
256 #endif | 256 #endif |
257 }; | 257 }; |
258 | 258 |
259 } // namespace ui | 259 } // namespace ui |
260 | 260 |
261 #endif // UI_LATENCY_LATENCY_INFO_H_ | 261 #endif // UI_LATENCY_LATENCY_INFO_H_ |
OLD | NEW |