-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't transfer layout outputs to java for nodes which don't have a new layout #492
Conversation
@emilsjolander has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
1 similar comment
@emilsjolander has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
java/com/facebook/yoga/YogaNode.java
Outdated
@@ -81,6 +81,8 @@ public static void setLogger(YogaLogger logger) { | |||
private float mBorderBottom = 0; | |||
@DoNotStrip | |||
private int mLayoutDirection = 0; | |||
@DoNotStrip | |||
private bool mHasNewLayout = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boolean
I don't think your last diff is needed. Can you give an example where it would break without it? |
@emilsjolander has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
…w layout Summary: As suggested in facebook/yoga#484. This is the PR which only adds the part of using a local bool field for storing the hasLayoutFlag, to be able to pass the layout only if it has really changed. Closes facebook/yoga#492 Reviewed By: astreet Differential Revision: D4786961 Pulled By: emilsjolander fbshipit-source-id: cf3d354b93f6dcc3ef817ef73a47bd29e37d1848
…w layout Summary: As suggested in facebook/yoga#484. This is the PR which only adds the part of using a local bool field for storing the hasLayoutFlag, to be able to pass the layout only if it has really changed. Closes facebook/yoga#492 Reviewed By: astreet Differential Revision: D4786961 Pulled By: emilsjolander fbshipit-source-id: cf3d354b93f6dcc3ef817ef73a47bd29e37d1848
…w layout Summary: As suggested in facebook#484. This is the PR which only adds the part of using a local bool field for storing the hasLayoutFlag, to be able to pass the layout only if it has really changed. Closes facebook#492 Reviewed By: astreet Differential Revision: D4786961 Pulled By: emilsjolander fbshipit-source-id: cf3d354b93f6dcc3ef817ef73a47bd29e37d1848 fail fast if ygnode gets GCed added backing field for new layout fix compile set padding, margin and border only if set changed from bool to int to reduce jni calls by 2 code review
…w layout Summary: As suggested in facebook#484. This is the PR which only adds the part of using a local bool field for storing the hasLayoutFlag, to be able to pass the layout only if it has really changed. Closes facebook#492 Reviewed By: astreet Differential Revision: D4786961 Pulled By: emilsjolander fbshipit-source-id: cf3d354b93f6dcc3ef817ef73a47bd29e37d1848 fail fast if ygnode gets GCed added backing field for new layout fix compile set padding, margin and border only if set changed from bool to int to reduce jni calls by 2 code review
…w layout Summary: As suggested in facebook/yoga#484. This is the PR which only adds the part of using a local bool field for storing the hasLayoutFlag, to be able to pass the layout only if it has really changed. Closes facebook/yoga#492 Reviewed By: astreet Differential Revision: D4786961 Pulled By: emilsjolander fbshipit-source-id: cf3d354b93f6dcc3ef817ef73a47bd29e37d1848
…w layout Summary: As suggested in facebook/yoga#484. This is the PR which only adds the part of using a local bool field for storing the hasLayoutFlag, to be able to pass the layout only if it has really changed. Closes facebook/yoga#492 Reviewed By: astreet Differential Revision: D4786961 Pulled By: emilsjolander fbshipit-source-id: cf3d354b93f6dcc3ef817ef73a47bd29e37d1848
As suggested in #484. This is the PR which only adds the part of using a local bool field for storing the hasLayoutFlag, to be able to pass the layout only if it has really changed.