Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

woehrl01
Copy link
Contributor

@woehrl01 woehrl01 commented Mar 27, 2017

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.

@woehrl01 woehrl01 changed the title Instead of using YGNodeHasNewLayout use bool field Don't transfer layout outputs to java for nodes which don't have a new layout Mar 28, 2017
@facebook-github-bot
Copy link
Contributor

@emilsjolander has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

1 similar comment
@facebook-github-bot
Copy link
Contributor

@emilsjolander has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@@ -81,6 +81,8 @@ public static void setLogger(YogaLogger logger) {
private float mBorderBottom = 0;
@DoNotStrip
private int mLayoutDirection = 0;
@DoNotStrip
private bool mHasNewLayout = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boolean

@emilsjolander
Copy link
Contributor

I don't think your last diff is needed. Can you give an example where it would break without it?

@facebook-github-bot
Copy link
Contributor

@emilsjolander has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Mar 29, 2017
…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
facebook-github-bot pushed a commit to facebook/litho that referenced this pull request Mar 29, 2017
…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
woehrl01 added a commit to woehrl01/yoga that referenced this pull request Mar 30, 2017
…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
woehrl01 added a commit to woehrl01/yoga that referenced this pull request Mar 30, 2017
…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
grabbou pushed a commit to facebook/react-native that referenced this pull request Apr 6, 2017
…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
thotegowda pushed a commit to thotegowda/react-native that referenced this pull request May 7, 2017
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants