Index: content/renderer/input/render_widget_input_handler.cc |
diff --git a/content/renderer/input/render_widget_input_handler.cc b/content/renderer/input/render_widget_input_handler.cc |
index 4a9261ba98a411adfa49b7a800555b06667e2a5a..36e63db0dd6f95822093c13c61f9fc9cec883338 100644 |
--- a/content/renderer/input/render_widget_input_handler.cc |
+++ b/content/renderer/input/render_widget_input_handler.cc |
@@ -247,6 +247,14 @@ void RenderWidgetInputHandler::HandleInputEvent( |
std::unique_ptr<cc::SwapPromiseMonitor> latency_info_swap_promise_monitor; |
ui::LatencyInfo swap_latency_info(latency_info); |
+ |
+ if (RenderThreadImpl::current()) { |
+ swap_latency_info.set_expected_queueing_time_on_dispatch( |
+ RenderThreadImpl::current() |
+ ->GetRendererScheduler() |
+ ->MostRecentExpectedQueueingTime()); |
+ } |
+ |
swap_latency_info.AddLatencyNumber( |
ui::LatencyComponentType::INPUT_EVENT_LATENCY_RENDERER_MAIN_COMPONENT, 0, |
0); |