moved all yoga node jni batching code to YogaNodeJNIBase and removed subclasses

Summary: Removed classes YogaNodeJNI and YogaNodeJNIBatching and all the logic have been moved to base class

Reviewed By: davidaurelio

Differential Revision: D16221484

fbshipit-source-id: 830819f5bc6010291b8bc0c6d90897cea991909f
This commit is contained in:
Sidharth Guglani
2019-07-15 11:09:05 -07:00
committed by Facebook Github Bot
parent 838fc3f019
commit d676d917e3
4 changed files with 151 additions and 368 deletions

View File

@@ -10,11 +10,11 @@ import javax.annotation.Nullable;
public abstract class YogaNode {
public static YogaNode create() {
return new YogaNodeJNIBatching();
return new YogaNodeJNIBase();
}
public static YogaNode create(YogaConfig config) {
return new YogaNodeJNIBatching(config);
return new YogaNodeJNIBase(config);
}
public abstract void reset();