Skip to content

Commit

Permalink
Set up Yoga experiment
Browse files Browse the repository at this point in the history
Reviewed By: priteshrnandgaonkar

Differential Revision: D9943869

fbshipit-source-id: 6b6550f453ab4e0ab8305401b299f2d0ed415f72
  • Loading branch information
davidaurelio authored and facebook-github-bot committed Sep 25, 2018
1 parent 6e46eec commit 357ca78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ yoga_cxx_library(
"-std=c++11",
],
platforms = ANDROID,
preprocessor_flags = [
"-DFBJNI_WITH_FAST_CALLS",
],
soname = "libyoga.$(ext)",
visibility = ["PUBLIC"],
deps = [
Expand Down
4 changes: 4 additions & 0 deletions java/com/facebook/yoga/YogaJNI.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
import com.facebook.soloader.SoLoader;

public class YogaJNI {

// Known constants. 1-3 used in previous experiments. Do not reuse.
public static int JNI_FAST_CALLS = 4;

// set before loading any other Yoga code
public static boolean useFastCall = false;

Expand Down

0 comments on commit 357ca78

Please sign in to comment.