Add arguments to native methods required for host builds
Critical methods need to have CRITICAL_JNI_PARAMS(_COMMA) added to their
list of arguments to ensure they work on host JVM as well as ART.
Bug: 179113771
Test: lunch sdk && m libandroid_runtime
Change-Id: I7ae9d37b2b9e3426f37113ad5d9b1bb946c219cb
diff --git a/libs/hwui/jni/fonts/Font.cpp b/libs/hwui/jni/fonts/Font.cpp
index 3392dac..c8471a9 100644
--- a/libs/hwui/jni/fonts/Font.cpp
+++ b/libs/hwui/jni/fonts/Font.cpp
@@ -219,7 +219,7 @@
}
// Critical Native
-static jlong Font_getReleaseNativeFontFunc() {
+static jlong Font_getReleaseNativeFontFunc(CRITICAL_JNI_PARAMS) {
return reinterpret_cast<jlong>(releaseFont);
}