diff --git a/frameworks/core/pipeline/pipeline_context.cpp b/frameworks/core/pipeline/pipeline_context.cpp index 96ad9dda..8de761d0 100644 --- a/frameworks/core/pipeline/pipeline_context.cpp +++ b/frameworks/core/pipeline/pipeline_context.cpp @@ -1084,8 +1084,10 @@ void PipelineContext::PushPage(const RefPtr& pageComponent, const RefPtr display = AceType::MakeRefPtr(pageComponent); stageElement->PushPage(display); } -#if !defined(WINDOWS_PLATFORM) and !defined(MAC_PLATFORM) + +#if defined(ENABLE_NATIVE_VIEW) || defined(ENABLE_ROSEN_BACKEND) if (GetIsDeclarative()) { + // if not use flutter scheduler, can flush pipeline immediately. if (isSurfaceReady_) { FlushPipelineImmediately(); } else {