| 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_BASE_LATENCY_INFO_H_ | 5 #ifndef UI_BASE_LATENCY_INFO_H_ |
| 6 #define UI_BASE_LATENCY_INFO_H_ | 6 #define UI_BASE_LATENCY_INFO_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // is the same as INPUT_EVENT_LATENCY_RWH_COMPONENT. | 25 // is the same as INPUT_EVENT_LATENCY_RWH_COMPONENT. |
| 26 INPUT_EVENT_LATENCY_SCROLL_UPDATE_RWH_COMPONENT, | 26 INPUT_EVENT_LATENCY_SCROLL_UPDATE_RWH_COMPONENT, |
| 27 // The original timestamp of the touch event which converts to scroll update. | 27 // The original timestamp of the touch event which converts to scroll update. |
| 28 INPUT_EVENT_LATENCY_SCROLL_UPDATE_ORIGINAL_COMPONENT, | 28 INPUT_EVENT_LATENCY_SCROLL_UPDATE_ORIGINAL_COMPONENT, |
| 29 // Original timestamp for input event (e.g. timestamp from kernel). | 29 // Original timestamp for input event (e.g. timestamp from kernel). |
| 30 INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, | 30 INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, |
| 31 // Timestamp when the UI event is created. | 31 // Timestamp when the UI event is created. |
| 32 INPUT_EVENT_LATENCY_UI_COMPONENT, | 32 INPUT_EVENT_LATENCY_UI_COMPONENT, |
| 33 // Timestamp when the event is acked from renderer. This is currently set | 33 // Timestamp when the event is acked from renderer. This is currently set |
| 34 // only for touch events. | 34 // only for touch events. |
| 35 INPUT_EVENT_LATENCY_ACKED_COMPONENT | 35 INPUT_EVENT_LATENCY_ACKED_COMPONENT, |
| 36 // Timestamp when the event is sent from the impl to main renderer thread. |
| 37 INPUT_EVENT_LATENCY_EVENT_SENT_FROM_IMPL_THREAD_COMPONENT, |
| 38 // Timestamp when the event is received on the main thread. |
| 39 INPUT_EVENT_LATENCY_EVENT_RECEIVED_ON_MAIN_THREAD_COMPONENT, |
| 36 }; | 40 }; |
| 37 | 41 |
| 38 struct UI_EXPORT LatencyInfo { | 42 struct UI_EXPORT LatencyInfo { |
| 39 struct LatencyComponent { | 43 struct LatencyComponent { |
| 40 // Nondecreasing number that can be used to determine what events happened | 44 // Nondecreasing number that can be used to determine what events happened |
| 41 // in the component at the time this struct was sent on to the next | 45 // in the component at the time this struct was sent on to the next |
| 42 // component. | 46 // component. |
| 43 int64 sequence_number; | 47 int64 sequence_number; |
| 44 // Average time of events that happened in this component. | 48 // Average time of events that happened in this component. |
| 45 base::TimeTicks event_time; | 49 base::TimeTicks event_time; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 91 |
| 88 LatencyMap latency_components; | 92 LatencyMap latency_components; |
| 89 | 93 |
| 90 // This represents the final time that a frame is displayed it. | 94 // This represents the final time that a frame is displayed it. |
| 91 base::TimeTicks swap_timestamp; | 95 base::TimeTicks swap_timestamp; |
| 92 }; | 96 }; |
| 93 | 97 |
| 94 } // namespace ui | 98 } // namespace ui |
| 95 | 99 |
| 96 #endif // UI_BASE_LATENCY_INFO_H_ | 100 #endif // UI_BASE_LATENCY_INFO_H_ |
| OLD | NEW |