| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 INPUT_EVENT_LATENCY_TERMINATED_GESTURE_COMPONENT, | 61 INPUT_EVENT_LATENCY_TERMINATED_GESTURE_COMPONENT, |
| 62 // Timestamp when the frame is swapped (i.e. when the rendering caused by | 62 // Timestamp when the frame is swapped (i.e. when the rendering caused by |
| 63 // input event actually takes effect). | 63 // input event actually takes effect). |
| 64 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT, | 64 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT, |
| 65 // This component indicates that the input causes a commit to be scheduled | 65 // This component indicates that the input causes a commit to be scheduled |
| 66 // but the commit failed. | 66 // but the commit failed. |
| 67 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_FAILED_COMPONENT, | 67 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_FAILED_COMPONENT, |
| 68 // This component indicates that the input causes a swap to be scheduled | 68 // This component indicates that the input causes a swap to be scheduled |
| 69 // but the swap failed. | 69 // but the swap failed. |
| 70 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT, | 70 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT, |
| 71 // This component indicates that the cached LatencyInfo number exceeds the | |
| 72 // maximal allowed size. | |
| 73 LATENCY_INFO_LIST_TERMINATED_OVERFLOW_COMPONENT, | |
| 74 // Timestamp when the input event is considered not cause any rendering | 71 // Timestamp when the input event is considered not cause any rendering |
| 75 // damage in plugin and thus terminated. | 72 // damage in plugin and thus terminated. |
| 76 INPUT_EVENT_LATENCY_TERMINATED_PLUGIN_COMPONENT, | 73 INPUT_EVENT_LATENCY_TERMINATED_PLUGIN_COMPONENT, |
| 77 LATENCY_COMPONENT_TYPE_LAST = INPUT_EVENT_LATENCY_TERMINATED_PLUGIN_COMPONENT | 74 LATENCY_COMPONENT_TYPE_LAST = INPUT_EVENT_LATENCY_TERMINATED_PLUGIN_COMPONENT |
| 78 }; | 75 }; |
| 79 | 76 |
| 80 struct EVENTS_BASE_EXPORT LatencyInfo { | 77 struct EVENTS_BASE_EXPORT LatencyInfo { |
| 81 struct LatencyComponent { | 78 struct LatencyComponent { |
| 82 // Nondecreasing number that can be used to determine what events happened | 79 // Nondecreasing number that can be used to determine what events happened |
| 83 // in the component at the time this struct was sent on to the next | 80 // in the component at the time this struct was sent on to the next |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 LatencyMap latency_components; | 146 LatencyMap latency_components; |
| 150 // The unique id for matching the ASYNC_BEGIN/END trace event. | 147 // The unique id for matching the ASYNC_BEGIN/END trace event. |
| 151 int64 trace_id; | 148 int64 trace_id; |
| 152 // Whether a terminal component has been added. | 149 // Whether a terminal component has been added. |
| 153 bool terminated; | 150 bool terminated; |
| 154 }; | 151 }; |
| 155 | 152 |
| 156 } // namespace ui | 153 } // namespace ui |
| 157 | 154 |
| 158 #endif // UI_EVENTS_LATENCY_INFO_H_ | 155 #endif // UI_EVENTS_LATENCY_INFO_H_ |
| OLD | NEW |