From 5db45a506f7d1cf5cb86461cce73e6405e12e04d Mon Sep 17 00:00:00 2001 From: liuzeyu Date: Fri, 20 Dec 2024 16:49:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=8B=E5=8A=BF=E6=B5=81?= =?UTF-8?q?=E7=A8=8Btrace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuzeyu --- blink/renderer/platform/widget/input/input_handler_proxy.cc | 5 ++++- .../platform/widget/input/widget_input_handler_manager.cc | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/blink/renderer/platform/widget/input/input_handler_proxy.cc b/blink/renderer/platform/widget/input/input_handler_proxy.cc index 8ad79bb95a..422e682ae9 100755 --- a/blink/renderer/platform/widget/input/input_handler_proxy.cc +++ b/blink/renderer/platform/widget/input/input_handler_proxy.cc @@ -1400,7 +1400,10 @@ InputHandlerProxy::HandleGestureScrollUpdate( cc::InputHandlerScrollResult scroll_result = input_handler_->ScrollUpdate(&scroll_state, delay); - + std::string scroll_result_str = base::StringPrintf("trace_id:%ld pro_dx:%f pro_dy:%f vi_dx:%f vi_dy:%f", + trace_id, provided_delta_x, provided_delta_y, + scroll_result.current_visual_offset.x(), scroll_result.current_visual_offset.y()); + OHOS_TRACE_EVENT1("input", "InputHandlerProxy::HandleGestureScrollUpdate_Result", "result", scroll_result_str); TRACE_EVENT( "input", "InputHandlerProxy::HandleGestureScrollUpdate_Result", [trace_id, provided_delta_x, provided_delta_y, diff --git a/blink/renderer/platform/widget/input/widget_input_handler_manager.cc b/blink/renderer/platform/widget/input/widget_input_handler_manager.cc index 17ecf03883..67ddf69b22 100644 --- a/blink/renderer/platform/widget/input/widget_input_handler_manager.cc +++ b/blink/renderer/platform/widget/input/widget_input_handler_manager.cc @@ -672,6 +672,8 @@ void WidgetInputHandlerManager::DispatchEvent( } if (suppress_input && !allow_pre_commit_input_ && !event_is_move) { + LOG(INFO) << "WidgetInputHandlerManager::DispatchEvent Dropping input event to defer rendering pipeline phase " + << event->Event().GetType(); if (callback) { std::move(callback).Run(mojom::blink::InputEventResultSource::kMainThread, ui::LatencyInfo(), @@ -747,6 +749,7 @@ void WidgetInputHandlerManager::DispatchEvent( if (uses_input_handler_) { // If the input_handler_proxy has disappeared ensure we just ack event. if (!input_handler_proxy_) { + LOG(INFO) << "WidgetInputHandlerManager::DispatchEvent input_handler_proxy_ has disappeared"; if (callback) { std::move(callback).Run( mojom::blink::InputEventResultSource::kMainThread, -- Gitee