!2135 解决跨平台版本首次刷帧不显示问题

Merge pull request !2135 from Sunfei/work_0218
This commit is contained in:
openharmony_ci
2022-04-03 15:05:26 +00:00
committed by Gitee
@@ -1084,8 +1084,10 @@ void PipelineContext::PushPage(const RefPtr<PageComponent>& pageComponent, const
RefPtr<DisplayComponent> display = AceType::MakeRefPtr<DisplayComponent>(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 {