moved together the java object fields which are set always

Summary:
Moved all layout outputs fields which are set always on yoga node java object.
This change set is for adding experiment for layout outputs batching using a float array

Reviewed By: davidaurelio

Differential Revision: D14355025

fbshipit-source-id: 371d9c49fcb631efa8a79b62f8051ba5a17c232c
This commit is contained in:
Sidharth Guglani
2019-03-13 06:21:58 -07:00
committed by Facebook Github Bot
parent 42e3b78f04
commit 0d96098fd9

View File

@@ -175,6 +175,8 @@ static void YGTransferLayoutOutputsRecursive(
obj->setFieldValue<jboolean>(
doesLegacyStretchBehaviour,
YGNodeLayoutGetDidLegacyStretchFlagAffectLayout(root));
obj->setFieldValue<jboolean>(hasNewLayoutField, true);
YGTransferLayoutDirection(root, obj);
if ((edgeSetFlag & MARGIN) == MARGIN) {
obj->setFieldValue(
@@ -207,8 +209,6 @@ static void YGTransferLayoutOutputsRecursive(
borderBottomField, YGNodeLayoutGetBorder(root, YGEdgeBottom));
}
obj->setFieldValue<jboolean>(hasNewLayoutField, true);
YGTransferLayoutDirection(root, obj);
root->setHasNewLayout(false);
for (uint32_t i = 0; i < YGNodeGetChildCount(root); i++) {