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

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

Issue 165423002: Use validating IPC enum macros in common param traits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « content/common/content_param_traits_macros.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // This component indicates that the cached LatencyInfo number exceeds the
66 // maximal allowed size. 66 // maximal allowed size.
67 LATENCY_INFO_LIST_TERMINATED_OVERFLOW_COMPONENT, 67 LATENCY_INFO_LIST_TERMINATED_OVERFLOW_COMPONENT,
68 LATENCY_COMPONENT_TYPE_LAST = LATENCY_INFO_LIST_TERMINATED_OVERFLOW_COMPONENT
68 }; 69 };
69 70
70 struct EVENTS_BASE_EXPORT LatencyInfo { 71 struct EVENTS_BASE_EXPORT LatencyInfo {
71 struct LatencyComponent { 72 struct LatencyComponent {
72 // Nondecreasing number that can be used to determine what events happened 73 // Nondecreasing number that can be used to determine what events happened
73 // in the component at the time this struct was sent on to the next 74 // in the component at the time this struct was sent on to the next
74 // component. 75 // component.
75 int64 sequence_number; 76 int64 sequence_number;
76 // Average time of events that happened in this component. 77 // Average time of events that happened in this component.
77 base::TimeTicks event_time; 78 base::TimeTicks event_time;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 LatencyMap latency_components; 136 LatencyMap latency_components;
136 // The unique id for matching the ASYNC_BEGIN/END trace event. 137 // The unique id for matching the ASYNC_BEGIN/END trace event.
137 int64 trace_id; 138 int64 trace_id;
138 // Whether a terminal component has been added. 139 // Whether a terminal component has been added.
139 bool terminated; 140 bool terminated;
140 }; 141 };
141 142
142 } // namespace ui 143 } // namespace ui
143 144
144 #endif // UI_EVENTS_LATENCY_INFO_H_ 145 #endif // UI_EVENTS_LATENCY_INFO_H_
OLDNEW
« no previous file with comments | « content/common/content_param_traits_macros.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698