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

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

Issue 240163005: Deliver IPC messages together with SwapCompositorFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: who needs a frame number Created 6 years, 7 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 | Annotate | Revision Log
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 <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 INPUT_EVENT_LATENCY_TERMINATED_GESTURE_COMPONENT, 55 INPUT_EVENT_LATENCY_TERMINATED_GESTURE_COMPONENT,
56 // Timestamp when the frame is swapped (i.e. when the rendering caused by 56 // Timestamp when the frame is swapped (i.e. when the rendering caused by
57 // input event actually takes effect). 57 // input event actually takes effect).
58 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT, 58 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT,
59 // This component indicates that the input causes a commit to be scheduled 59 // This component indicates that the input causes a commit to be scheduled
60 // but the commit failed. 60 // but the commit failed.
61 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_FAILED_COMPONENT, 61 INPUT_EVENT_LATENCY_TERMINATED_COMMIT_FAILED_COMPONENT,
62 // This component indicates that the input causes a swap to be scheduled 62 // This component indicates that the input causes a swap to be scheduled
63 // but the swap failed. 63 // but the swap failed.
64 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT, 64 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT,
65 // This component indicates that the cached LatencyInfo number exceeds the 65 LATENCY_COMPONENT_TYPE_LAST =
66 // maximal allowed size. 66 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT
67 LATENCY_INFO_LIST_TERMINATED_OVERFLOW_COMPONENT,
68 LATENCY_COMPONENT_TYPE_LAST = LATENCY_INFO_LIST_TERMINATED_OVERFLOW_COMPONENT
69 }; 67 };
70 68
71 struct EVENTS_BASE_EXPORT LatencyInfo { 69 struct EVENTS_BASE_EXPORT LatencyInfo {
72 struct LatencyComponent { 70 struct LatencyComponent {
73 // Nondecreasing number that can be used to determine what events happened 71 // Nondecreasing number that can be used to determine what events happened
74 // in the component at the time this struct was sent on to the next 72 // in the component at the time this struct was sent on to the next
75 // component. 73 // component.
76 int64 sequence_number; 74 int64 sequence_number;
77 // Average time of events that happened in this component. 75 // Average time of events that happened in this component.
78 base::TimeTicks event_time; 76 base::TimeTicks event_time;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 LatencyMap latency_components; 138 LatencyMap latency_components;
141 // The unique id for matching the ASYNC_BEGIN/END trace event. 139 // The unique id for matching the ASYNC_BEGIN/END trace event.
142 int64 trace_id; 140 int64 trace_id;
143 // Whether a terminal component has been added. 141 // Whether a terminal component has been added.
144 bool terminated; 142 bool terminated;
145 }; 143 };
146 144
147 } // namespace ui 145 } // namespace ui
148 146
149 #endif // UI_EVENTS_LATENCY_INFO_H_ 147 #endif // UI_EVENTS_LATENCY_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698