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