-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fabric: Using unique_ptr for storing YGNode inside YogaLayoutableShad…
…owNode Summary: I recently realized (Thanks David!) that we should not use `shared_ptr` for storing YGNode* because ShadowNode does not share ownership of the Yoga node with anybody. So the lifecycle of shadow node and yoga node must be synchronized (this is already the case but changing to unique_ptr makes this explicit and a bit more performant). Reviewed By: fkgozali Differential Revision: D8030417 fbshipit-source-id: c7f85ea309598d2a5ebfed55b1d182d3fe1336ae
- Loading branch information
1 parent
6cc597e
commit caaea38
Showing
2 changed files
with
27 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters