Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(969)

Side by Side Diff: ui/events/latency_info.h

Issue 2570893003: Clean up LatencyInfo and RWHLatencyTracker. (Closed)
Patch Set: Avoid introducing new bare calls to FactoryGet. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Timestamp of when the browser process receives a buffer swap notification 79 // Timestamp of when the browser process receives a buffer swap notification
80 // from the renderer. 80 // from the renderer.
81 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT, 81 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT,
82 // Timestamp of when the gpu service began swap buffers, unlike 82 // Timestamp of when the gpu service began swap buffers, unlike
83 // INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT which measures after. 83 // INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT which measures after.
84 INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT, 84 INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT,
85 // Timestamp of when the gesture scroll update is generated from a mouse wheel 85 // Timestamp of when the gesture scroll update is generated from a mouse wheel
86 // event. 86 // event.
87 INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL, 87 INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL,
88 // ---------------------------TERMINAL COMPONENT----------------------------- 88 // ---------------------------TERMINAL COMPONENT-----------------------------
89 // TERMINAL COMPONENT is when we show the latency end in chrome://tracing. 89 // Timestamp when the event is acked from renderer when it does not
90 // Timestamp when the mouse event is acked from renderer and it does not 90 // cause any rendering to be scheduled.
91 // cause any rendering scheduled. 91 INPUT_EVENT_LATENCY_TERMINATED_NO_SWAP_COMPONENT,
92 INPUT_EVENT_LATENCY_TERMINATED_MOUSE_COMPONENT,
93 // Timestamp when the mouse wheel event is acked from renderer and it does not
94 // cause any rendering scheduled.
95 INPUT_EVENT_LATENCY_TERMINATED_MOUSE_WHEEL_COMPONENT,
96 // Timestamp when the keyboard event is acked from renderer and it does not
97 // cause any rendering scheduled.
98 INPUT_EVENT_LATENCY_TERMINATED_KEYBOARD_COMPONENT,
99 // Timestamp when the touch event is acked from renderer and it does not
100 // cause any rendering scheduled and does not generate any gesture event.
101 INPUT_EVENT_LATENCY_TERMINATED_TOUCH_COMPONENT,
102 // Timestamp when the gesture event is acked from renderer, and it does not
103 // cause any rendering scheduled.
104 INPUT_EVENT_LATENCY_TERMINATED_GESTURE_COMPONENT,
105 // Timestamp when the frame is swapped (i.e. when the rendering caused by 92 // Timestamp when the frame is swapped (i.e. when the rendering caused by
106 // input event actually takes effect). 93 // input event actually takes effect).
107 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT, 94 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT,
108 // This component indicates that the input causes a commit to be scheduled 95 // This component indicates that the input causes a commit to be scheduled
109 // but the commit failed. 96 // but the commit failed.
110 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_FAILED_COMPONENT, 97 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_FAILED_COMPONENT,
111 // This component indicates that the input causes a commit to be scheduled 98 // This component indicates that the input causes a commit to be scheduled
112 // but the commit was aborted since it carried no new information. 99 // but the commit was aborted since it carried no new information.
113 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_NO_UPDATE_COMPONENT, 100 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_NO_UPDATE_COMPONENT,
114 // This component indicates that the input causes a swap to be scheduled 101 // This component indicates that the input causes a swap to be scheduled
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 #if !defined(OS_IOS) 253 #if !defined(OS_IOS)
267 friend struct IPC::ParamTraits<ui::LatencyInfo>; 254 friend struct IPC::ParamTraits<ui::LatencyInfo>;
268 friend struct mojo::StructTraits<ui::mojom::LatencyInfoDataView, 255 friend struct mojo::StructTraits<ui::mojom::LatencyInfoDataView,
269 ui::LatencyInfo>; 256 ui::LatencyInfo>;
270 #endif 257 #endif
271 }; 258 };
272 259
273 } // namespace ui 260 } // namespace ui
274 261
275 #endif // UI_EVENTS_LATENCY_INFO_H_ 262 #endif // UI_EVENTS_LATENCY_INFO_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/render_widget_host_latency_tracker_unittest.cc ('k') | ui/events/latency_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698