Skip to content

Commit

Permalink
build(voltron): resolve voltron build error
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwcg committed Sep 4, 2024
1 parent 95ee14f commit 8e037cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/voltron/core/src/bridge/bridge_ffi_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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<voltron::VoltronRenderManager> render_manager =
std::static_pointer_cast<voltron::VoltronRenderManager>(scope->GetRenderManager().lock());
std::static_pointer_cast<voltron::VoltronRenderManager>(dom_manager->GetRenderManager().lock());

float density = render_manager->GetDensity();
auto layout_node = root_node->GetLayoutNode();
Expand Down

0 comments on commit 8e037cd

Please sign in to comment.