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

Side by Side Diff: ui/latency/mojo/latency_info_struct_traits.h

Issue 2914023002: Remove LatencyInfo::sequence_number. (May break metrics).
Patch Set: Rebase Created 3 years, 5 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 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 #ifndef UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_ 5 #ifndef UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_
6 #define UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_ 6 #define UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_
7 7
8 #include "mojo/common/common_custom_types_struct_traits.h" 8 #include "mojo/common/common_custom_types_struct_traits.h"
9 #include "ui/gfx/geometry/mojo/geometry_struct_traits.h" 9 #include "ui/gfx/geometry/mojo/geometry_struct_traits.h"
10 #include "ui/latency/latency_info.h" 10 #include "ui/latency/latency_info.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 static Element& GetValue(Iterator& iterator) { return *iterator; } 43 static Element& GetValue(Iterator& iterator) { return *iterator; }
44 44
45 static size_t GetSize(const ui::LatencyInfo::LatencyMap& input) { 45 static size_t GetSize(const ui::LatencyInfo::LatencyMap& input) {
46 return input.size(); 46 return input.size();
47 } 47 }
48 }; 48 };
49 49
50 template <> 50 template <>
51 struct StructTraits<ui::mojom::LatencyComponentDataView, 51 struct StructTraits<ui::mojom::LatencyComponentDataView,
52 ui::LatencyInfo::LatencyComponent> { 52 ui::LatencyInfo::LatencyComponent> {
53 static int64_t sequence_number(
54 const ui::LatencyInfo::LatencyComponent& component);
55 static base::TimeTicks event_time( 53 static base::TimeTicks event_time(
56 const ui::LatencyInfo::LatencyComponent& component); 54 const ui::LatencyInfo::LatencyComponent& component);
57 static uint32_t event_count( 55 static uint32_t event_count(
58 const ui::LatencyInfo::LatencyComponent& component); 56 const ui::LatencyInfo::LatencyComponent& component);
59 static base::TimeTicks first_event_time( 57 static base::TimeTicks first_event_time(
60 const ui::LatencyInfo::LatencyComponent& component); 58 const ui::LatencyInfo::LatencyComponent& component);
61 static base::TimeTicks last_event_time( 59 static base::TimeTicks last_event_time(
62 const ui::LatencyInfo::LatencyComponent& component); 60 const ui::LatencyInfo::LatencyComponent& component);
63 static bool Read(ui::mojom::LatencyComponentDataView data, 61 static bool Read(ui::mojom::LatencyComponentDataView data,
64 ui::LatencyInfo::LatencyComponent* out); 62 ui::LatencyInfo::LatencyComponent* out);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 static ui::mojom::SourceEventType source_event_type( 100 static ui::mojom::SourceEventType source_event_type(
103 const ui::LatencyInfo& info); 101 const ui::LatencyInfo& info);
104 static base::TimeDelta expected_queueing_time_on_dispatch( 102 static base::TimeDelta expected_queueing_time_on_dispatch(
105 const ui::LatencyInfo& info); 103 const ui::LatencyInfo& info);
106 static bool Read(ui::mojom::LatencyInfoDataView data, ui::LatencyInfo* out); 104 static bool Read(ui::mojom::LatencyInfoDataView data, ui::LatencyInfo* out);
107 }; 105 };
108 106
109 } // namespace mojo 107 } // namespace mojo
110 108
111 #endif // UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_ 109 #endif // UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698