| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 INPUT_EVENT_LATENCY_TERMINATED_TOUCH_COMPONENT, | 58 INPUT_EVENT_LATENCY_TERMINATED_TOUCH_COMPONENT, |
| 59 // Timestamp when the gesture event is acked from renderer, and it does not | 59 // Timestamp when the gesture event is acked from renderer, and it does not |
| 60 // cause any rendering schedueld. | 60 // cause any rendering schedueld. |
| 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 commit to be scheduled |
| 69 // but the commit was aborted since it carried no new information. |
| 70 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_NO_UPDATE_COMPONENT, |
| 68 // This component indicates that the input causes a swap to be scheduled | 71 // This component indicates that the input causes a swap to be scheduled |
| 69 // but the swap failed. | 72 // but the swap failed. |
| 70 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT, | 73 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 | 74 // Timestamp when the input event is considered not cause any rendering |
| 75 // damage in plugin and thus terminated. | 75 // damage in plugin and thus terminated. |
| 76 INPUT_EVENT_LATENCY_TERMINATED_PLUGIN_COMPONENT, | 76 INPUT_EVENT_LATENCY_TERMINATED_PLUGIN_COMPONENT, |
| 77 LATENCY_COMPONENT_TYPE_LAST = INPUT_EVENT_LATENCY_TERMINATED_PLUGIN_COMPONENT | 77 LATENCY_COMPONENT_TYPE_LAST = INPUT_EVENT_LATENCY_TERMINATED_PLUGIN_COMPONENT |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 struct EVENTS_BASE_EXPORT LatencyInfo { | 80 struct EVENTS_BASE_EXPORT LatencyInfo { |
| 81 struct LatencyComponent { | 81 struct LatencyComponent { |
| 82 // Nondecreasing number that can be used to determine what events happened | 82 // 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 | 83 // 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; | 149 LatencyMap latency_components; |
| 150 // The unique id for matching the ASYNC_BEGIN/END trace event. | 150 // The unique id for matching the ASYNC_BEGIN/END trace event. |
| 151 int64 trace_id; | 151 int64 trace_id; |
| 152 // Whether a terminal component has been added. | 152 // Whether a terminal component has been added. |
| 153 bool terminated; | 153 bool terminated; |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace ui | 156 } // namespace ui |
| 157 | 157 |
| 158 #endif // UI_EVENTS_LATENCY_INFO_H_ | 158 #endif // UI_EVENTS_LATENCY_INFO_H_ |
| OLD | NEW |