| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module ui.mojom; | 5 module ui.mojom; |
| 6 | 6 |
| 7 import "mojo/common/time.mojom"; | 7 import "mojo/common/time.mojom"; |
| 8 import "ui/gfx/geometry/mojo/geometry.mojom"; | 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 9 | 9 |
| 10 enum LatencyComponentType { | 10 enum LatencyComponentType { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // from the renderer. | 49 // from the renderer. |
| 50 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT, | 50 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT, |
| 51 // Timestamp of when the gpu service began swap buffers, unlike | 51 // Timestamp of when the gpu service began swap buffers, unlike |
| 52 // INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT which measures after. | 52 // INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT which measures after. |
| 53 INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT, | 53 INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT, |
| 54 // Timestamp of when the gesture scroll update is generated from a mouse wheel | 54 // Timestamp of when the gesture scroll update is generated from a mouse wheel |
| 55 // event. | 55 // event. |
| 56 INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL, | 56 INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL, |
| 57 // ---------------------------TERMINAL COMPONENT----------------------------- | 57 // ---------------------------TERMINAL COMPONENT----------------------------- |
| 58 // TERMINAL COMPONENT is when we show the latency end in chrome://tracing. | 58 // TERMINAL COMPONENT is when we show the latency end in chrome://tracing. |
| 59 // Timestamp when the mouse event is acked from renderer and it does not | 59 // Timestamp when the event is acked from renderer when it does not |
| 60 // cause any rendering scheduled. | 60 // cause any rendering to be scheduled. |
| 61 INPUT_EVENT_LATENCY_TERMINATED_MOUSE_COMPONENT, | 61 INPUT_EVENT_LATENCY_TERMINATED_NO_SWAP_COMPONENT, |
| 62 // Timestamp when the mouse wheel event is acked from renderer and it does not | |
| 63 // cause any rendering scheduled. | |
| 64 INPUT_EVENT_LATENCY_TERMINATED_MOUSE_WHEEL_COMPONENT, | |
| 65 // Timestamp when the keyboard event is acked from renderer and it does not | |
| 66 // cause any rendering scheduled. | |
| 67 INPUT_EVENT_LATENCY_TERMINATED_KEYBOARD_COMPONENT, | |
| 68 // Timestamp when the touch event is acked from renderer and it does not | |
| 69 // cause any rendering scheduled and does not generate any gesture event. | |
| 70 INPUT_EVENT_LATENCY_TERMINATED_TOUCH_COMPONENT, | |
| 71 // Timestamp when the gesture event is acked from renderer, and it does not | |
| 72 // cause any rendering scheduled. | |
| 73 INPUT_EVENT_LATENCY_TERMINATED_GESTURE_COMPONENT, | |
| 74 // 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 |
| 75 // input event actually takes effect). | 63 // input event actually takes effect). |
| 76 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT, | 64 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT, |
| 77 // 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 |
| 78 // but the commit failed. | 66 // but the commit failed. |
| 79 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_FAILED_COMPONENT, | 67 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_FAILED_COMPONENT, |
| 80 // This component indicates that the input causes a commit to be scheduled | 68 // This component indicates that the input causes a commit to be scheduled |
| 81 // but the commit was aborted since it carried no new information. | 69 // but the commit was aborted since it carried no new information. |
| 82 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_NO_UPDATE_COMPONENT, | 70 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_NO_UPDATE_COMPONENT, |
| 83 // 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 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 110 | 98 |
| 111 // See ui/events/latency_info.h | 99 // See ui/events/latency_info.h |
| 112 struct LatencyInfo { | 100 struct LatencyInfo { |
| 113 string trace_name; | 101 string trace_name; |
| 114 array<LatencyComponentPair> latency_components; | 102 array<LatencyComponentPair> latency_components; |
| 115 array<gfx.mojom.PointF> input_coordinates; | 103 array<gfx.mojom.PointF> input_coordinates; |
| 116 int64 trace_id; | 104 int64 trace_id; |
| 117 bool coalesced; | 105 bool coalesced; |
| 118 bool terminated; | 106 bool terminated; |
| 119 }; | 107 }; |
| OLD | NEW |