diff --git a/shell/platform/ohos/platform_view_ohos.cpp b/shell/platform/ohos/platform_view_ohos.cpp index 00ff6165997a958b29282d119d1a2c7e44be9b52..5aa79c30c77dc0b5ab971a4351ca5ff00ccb5519 100644 --- a/shell/platform/ohos/platform_view_ohos.cpp +++ b/shell/platform/ohos/platform_view_ohos.cpp @@ -178,21 +178,10 @@ void PlatformViewOHOS::NotifySurfaceWindowChanged( } void PlatformViewOHOS::NotifyChanged(const SkISize& size) { - LOGI("PlatformViewOHOS NotifyChanged enter"); - if (ohos_surface_) { - fml::AutoResetWaitableEvent latch; - fml::TaskRunner::RunNowOrPostTask( - task_runners_.GetRasterTaskRunner(), // - [&latch, surface = ohos_surface_.get(), size, this]() { - if (GetDestroyed()) { - LOGW("NotifyChanged, GetDestroyed is true, ignore this call."); - } else { - surface->OnScreenSurfaceResize(size); - } - latch.Signal(); - }); - latch.Wait(); - } + //Do nothing, because SetViewportMetrics has notified window size change event + //If raster thread post task, Synchronization signal block application main thread + //(https://gitee.com/openharmony-sig/flutter_engine/issues/IBI4PK?from=project-issue) + return; } bool PlatformViewOHOS::GetDestroyed() {