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

Unified Diff: content/renderer/input/render_widget_input_handler.cc

Issue 2954473002: Record accuracy of expected queueing time metric. (Closed)
Patch Set: Set trace ID in test. Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698