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
@@ -10,11 +10,11 @@ import javax.annotation.Nullable;
|
||||
|
||||
public abstract class YogaNode {
|
||||
public static YogaNode create() {
|
||||
return new YogaNodeJNI();
|
||||
return new YogaNodeJNIBase();
|
||||
}
|
||||
|
||||
public static YogaNode create(YogaConfig config) {
|
||||
return new YogaNodeJNI(config);
|
||||
return new YogaNodeJNIBase(config);
|
||||
}
|
||||
|
||||
public abstract void reset();
|
||||
|
||||
Reference in New Issue
Block a user