| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // ---------------------------NORMAL COMPONENT------------------------------- | 37 // ---------------------------NORMAL COMPONENT------------------------------- |
| 38 // The original timestamp of the touch event which converts to scroll update. | 38 // The original timestamp of the touch event which converts to scroll update. |
| 39 INPUT_EVENT_LATENCY_SCROLL_UPDATE_ORIGINAL_COMPONENT, | 39 INPUT_EVENT_LATENCY_SCROLL_UPDATE_ORIGINAL_COMPONENT, |
| 40 // The original timestamp of the touch event which converts to the *first* | 40 // The original timestamp of the touch event which converts to the *first* |
| 41 // scroll update in a scroll gesture sequence. | 41 // scroll update in a scroll gesture sequence. |
| 42 INPUT_EVENT_LATENCY_FIRST_SCROLL_UPDATE_ORIGINAL_COMPONENT, | 42 INPUT_EVENT_LATENCY_FIRST_SCROLL_UPDATE_ORIGINAL_COMPONENT, |
| 43 // Original timestamp for input event (e.g. timestamp from kernel). | 43 // Original timestamp for input event (e.g. timestamp from kernel). |
| 44 INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, | 44 INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, |
| 45 // Timestamp when the UI event is created. | 45 // Timestamp when the UI event is created. |
| 46 INPUT_EVENT_LATENCY_UI_COMPONENT, | 46 INPUT_EVENT_LATENCY_UI_COMPONENT, |
| 47 // Timestamp when the event reaches the RWH. |
| 48 INPUT_EVENT_LATENCY_REACHED_RWH_COMPONENT, |
| 47 // This is special component indicating there is rendering scheduled for | 49 // This is special component indicating there is rendering scheduled for |
| 48 // the event associated with this LatencyInfo on main thread. | 50 // the event associated with this LatencyInfo on main thread. |
| 49 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_MAIN_COMPONENT, | 51 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_MAIN_COMPONENT, |
| 50 // This is special component indicating there is rendering scheduled for | 52 // This is special component indicating there is rendering scheduled for |
| 51 // the event associated with this LatencyInfo on impl thread. | 53 // the event associated with this LatencyInfo on impl thread. |
| 52 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT, | 54 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT, |
| 53 // Timestamp when a scroll update is forwarded to the main thread. | 55 // Timestamp when a scroll update is forwarded to the main thread. |
| 54 INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT, | 56 INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT, |
| 55 // Timestamp when the event's ack is received by the RWH. | 57 // Timestamp when the event's ack is received by the RWH. |
| 56 INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT, | 58 INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 bool terminated_; | 235 bool terminated_; |
| 234 | 236 |
| 235 #if !defined(OS_IOS) | 237 #if !defined(OS_IOS) |
| 236 friend struct IPC::ParamTraits<ui::LatencyInfo>; | 238 friend struct IPC::ParamTraits<ui::LatencyInfo>; |
| 237 #endif | 239 #endif |
| 238 }; | 240 }; |
| 239 | 241 |
| 240 } // namespace ui | 242 } // namespace ui |
| 241 | 243 |
| 242 #endif // UI_EVENTS_LATENCY_INFO_H_ | 244 #endif // UI_EVENTS_LATENCY_INFO_H_ |
| OLD | NEW |