From 8e037cdc5538c6f4c0519abb2a89502bee259f7e Mon Sep 17 00:00:00 2001 From: wwwcg Date: Wed, 4 Sep 2024 20:50:13 +0800 Subject: [PATCH] build(voltron): resolve voltron build error --- framework/voltron/core/src/bridge/bridge_ffi_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/voltron/core/src/bridge/bridge_ffi_impl.cc b/framework/voltron/core/src/bridge/bridge_ffi_impl.cc index 4bd163850ad..31a3ddd2340 100644 --- a/framework/voltron/core/src/bridge/bridge_ffi_impl.cc +++ b/framework/voltron/core/src/bridge/bridge_ffi_impl.cc @@ -281,7 +281,6 @@ EXTERN_C void DoBindDomAndRender(uint32_t dom_manager_id, int32_t engine_id, uin } scope->SetDomManager(dom_manager); - scope->SetRenderManager(render_manager); dom_manager->SetRenderManager(render_manager); render_manager->SetDomManager(dom_manager); render_manager->BindBridgeId(engine_id); @@ -330,8 +329,9 @@ EXTERN_C void DoConnectRootViewAndRuntime(int32_t engine_id, uint32_t root_id) { } #endif + auto dom_manager = scope->GetDomManager().lock(); std::shared_ptr render_manager = - std::static_pointer_cast(scope->GetRenderManager().lock()); + std::static_pointer_cast(dom_manager->GetRenderManager().lock()); float density = render_manager->GetDensity(); auto layout_node = root_node->GetLayoutNode();