From 23325482349f75723b74e1cc0e23aed8d2fc6840 Mon Sep 17 00:00:00 2001 From: ZhaoPengfei Date: Wed, 11 Sep 2024 20:29:21 +0800 Subject: [PATCH] test to optimize frame rate Signed-off-by: ZhaoPengfei --- .../platform/widget/input/input_handler_proxy.cc | 2 +- .../widget/input/widget_input_handler_impl.cc | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/blink/renderer/platform/widget/input/input_handler_proxy.cc b/blink/renderer/platform/widget/input/input_handler_proxy.cc index ca8cd8845..212974fde 100755 --- a/blink/renderer/platform/widget/input/input_handler_proxy.cc +++ b/blink/renderer/platform/widget/input/input_handler_proxy.cc @@ -336,7 +336,7 @@ void InputHandlerProxy::HandleInputEventWithLatencyInfo( LOG(DEBUG)<<"[NativeEmbed] DidNativeEmbedEvent return result is : "<Queue(std::move(event_with_callback)); - TriggerVsyncImplTask(); + // TriggerVsyncImplTask(); } else { #endif DispatchSingleInputEvent(std::move(event_with_callback), diff --git a/blink/renderer/platform/widget/input/widget_input_handler_impl.cc b/blink/renderer/platform/widget/input/widget_input_handler_impl.cc index 32d0aa563..eb11cf843 100644 --- a/blink/renderer/platform/widget/input/widget_input_handler_impl.cc +++ b/blink/renderer/platform/widget/input/widget_input_handler_impl.cc @@ -150,9 +150,9 @@ void WidgetInputHandlerImpl::DispatchEvent( std::unique_ptr event, DispatchEventCallback callback) { TRACE_EVENT0("input", "WidgetInputHandlerImpl::DispatchEvent"); -#if BUILDFLAG(IS_OHOS) - TriggerVsyncImplTask(); -#endif +// #if BUILDFLAG(IS_OHOS) +// TriggerVsyncImplTask(); +// #endif input_handler_manager_->DispatchEvent(std::move(event), std::move(callback)); } @@ -171,9 +171,9 @@ void WidgetInputHandlerImpl::DispatchNonBlockingEvent( TRACE_EVENT0("input", "WidgetInputHandlerImpl::DispatchNonBlockingEvent"); input_handler_manager_->DispatchEvent(std::move(event), DispatchEventCallback()); -#if BUILDFLAG(IS_OHOS) - TriggerVsyncImplTask(); -#endif +// #if BUILDFLAG(IS_OHOS) +// TriggerVsyncImplTask(); +// #endif } void WidgetInputHandlerImpl::WaitForInputProcessed( -- Gitee