diff --git a/frameworks/core/pipeline/pipeline_context.cpp b/frameworks/core/pipeline/pipeline_context.cpp index 72f82cb628b0d2879d3cff49e1c7e895f227213a..0c8f8ab142c64ac8abd1763fa366373da6d4a848 100644 --- a/frameworks/core/pipeline/pipeline_context.cpp +++ b/frameworks/core/pipeline/pipeline_context.cpp @@ -1136,7 +1136,7 @@ void PipelineContext::PushPage(const RefPtr& pageComponent, const stageElement->PushPage(display); } -#if defined(ENABLE_NATIVE_VIEW) +#if defined(ENABLE_NATIVE_VIEW) || defined(ENABLE_ROSEN_BACKEND) if (GetIsDeclarative()) { // if not use flutter scheduler, can flush pipeline immediately. if (isSurfaceReady_) {