Add jni bindings

Summary: Add jni bindings for csslayout. First step in many of removing LayoutEngine.java and performing all layout in native.

Reviewed By: lucasr

Differential Revision: D3648793

fbshipit-source-id: d0e696e196fa7c63109c9117a65645ca3d6c9c00
This commit is contained in:
Emil Sjolander
2016-08-04 08:19:59 -07:00
committed by Facebook Github Bot 9
parent 7af5e3d68d
commit c74eae50ac
13 changed files with 1164 additions and 33 deletions

View File

@@ -222,9 +222,9 @@ public class LayoutCachingTest {
root.calculateLayout(layoutContext);
markLayoutAppliedForTree(root);
c1.setMeasureFunction(new CSSNode.MeasureFunction() {
c1.setMeasureFunction(new CSSNodeAPI.MeasureFunction() {
@Override
public void measure(CSSNode node, float width, CSSMeasureMode widthMode, float height, CSSMeasureMode heightMode, MeasureOutput measureOutput) {
public void measure(CSSNodeAPI node, float width, CSSMeasureMode widthMode, float height, CSSMeasureMode heightMode, MeasureOutput measureOutput) {
measureOutput.width = 100;
measureOutput.height = 20;
}