Index: ui/latency/latency_info.h |
diff --git a/ui/latency/latency_info.h b/ui/latency/latency_info.h |
index 0f8b6be29ff6b45f316635ff3f9ee88a84281872..1e67f89078dfdf72c3deb661a9bc5c6453596e66 100644 |
--- a/ui/latency/latency_info.h |
+++ b/ui/latency/latency_info.h |
@@ -208,6 +208,15 @@ class LatencyInfo { |
source_event_type_ = type; |
} |
+ void set_expected_queueing_time_on_dispatch( |
+ base::TimeDelta expected_queueing_time) { |
+ expected_queueing_time_on_dispatch_ = expected_queueing_time; |
+ } |
+ |
+ base::TimeDelta expected_queueing_time_on_dispatch() const { |
+ return expected_queueing_time_on_dispatch_; |
+ } |
+ |
bool terminated() const { return terminated_; } |
void set_coalesced() { coalesced_ = true; } |
bool coalesced() const { return coalesced_; } |
@@ -239,6 +248,9 @@ class LatencyInfo { |
bool terminated_; |
// Stores the type of the first source event. |
SourceEventType source_event_type_; |
+ // The expected queueing time on the main thread when this event was |
+ // dispatched. |
+ base::TimeDelta expected_queueing_time_on_dispatch_; |
#if !defined(OS_IOS) |
friend struct IPC::ParamTraits<ui::LatencyInfo>; |