Index: ui/latency/mojo/latency_info_struct_traits.cc |
diff --git a/ui/latency/mojo/latency_info_struct_traits.cc b/ui/latency/mojo/latency_info_struct_traits.cc |
index 8e27b541be028b54eb273352ef12b6a835d28eea..955de5fdf406bc828d921a5c6683dda3395c702e 100644 |
--- a/ui/latency/mojo/latency_info_struct_traits.cc |
+++ b/ui/latency/mojo/latency_info_struct_traits.cc |
@@ -309,6 +309,12 @@ StructTraits<ui::mojom::LatencyInfoDataView, |
return UISourceEventTypeToMojo(info.source_event_type()); |
} |
+// static |
+base::TimeDelta StructTraits<ui::mojom::LatencyInfoDataView, ui::LatencyInfo>:: |
+ expected_queueing_time_on_dispatch(const ui::LatencyInfo& info) { |
+ return info.expected_queueing_time_on_dispatch(); |
+} |
+ |
// static |
bool StructTraits<ui::mojom::LatencyInfoDataView, ui::LatencyInfo>::Read( |
ui::mojom::LatencyInfoDataView data, |
@@ -334,7 +340,9 @@ bool StructTraits<ui::mojom::LatencyInfoDataView, ui::LatencyInfo>::Read( |
out->began_ = data.began(); |
out->terminated_ = data.terminated(); |
out->source_event_type_ = MojoSourceEventTypeToUI(data.source_event_type()); |
- return true; |
+ |
+ return data.ReadExpectedQueueingTimeOnDispatch( |
+ &out->expected_queueing_time_on_dispatch_); |
} |
} // namespace mojo |