renamed YogaNodeJNI to YogaNodeJNIBase
Summary: Renamed class from YogaNodeJNI to YogaNodeJNIBase. This change set is for adding experiment for layout outputs batching using a float array where we will have two separate classes which will override how layout outputs are transferred to java YogaNode object. We needed two separate classes because having everything in one class was causing memory issues as both the individual fields for width, height etc. and float array for batching needs to be present in code. Reviewed By: davidaurelio Differential Revision: D14368069 fbshipit-source-id: 0e98e28c8c7a9788345ccb92b2cd0f2cd4a53525
This commit is contained in:
committed by
Facebook Github Bot
parent
f793ba2d6b
commit
f039835249
@@ -30,9 +30,9 @@ public class YogaNodeTest {
|
||||
|
||||
@Test
|
||||
public void testInit() {
|
||||
final int refCount = YogaNodeJNI.jni_YGNodeGetInstanceCount();
|
||||
final int refCount = YogaNodeJNIBase.jni_YGNodeGetInstanceCount();
|
||||
final YogaNode node = createNode();
|
||||
assertEquals(refCount + 1, YogaNodeJNI.jni_YGNodeGetInstanceCount());
|
||||
assertEquals(refCount + 1, YogaNodeJNIBase.jni_YGNodeGetInstanceCount());
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -253,7 +253,7 @@ public class YogaNodeTest {
|
||||
root_child0_child0_child0.setFlexShrink(1);
|
||||
root_child0_child0.addChildAt(root_child0_child0_child0, 0);
|
||||
root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
|
||||
assertFalse(((YogaNodeJNI) root).getDoesLegacyStretchFlagAffectsLayout());
|
||||
assertFalse(((YogaNodeJNIBase) root).getDoesLegacyStretchFlagAffectsLayout());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user