diff options
| author | 2024-12-19 22:59:16 -0800 | |
|---|---|---|
| committer | 2024-12-19 22:59:16 -0800 | |
| commit | 99bc7977b662e89fbfa12828d5d649982b2875ed (patch) | |
| tree | 07a4a4163d2cbec487246a04d9dd5243c57f4ef9 /libs | |
| parent | ed17baad5f6887dab01cfdd0f20bed801dfa2273 (diff) | |
| parent | 596db6aafc9bb0ea270d6e38d854f9867c9d4ae7 (diff) | |
Merge "Add warning message if developer depends on undocumented behavior" into main
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/hwui/jni/Typeface.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/jni/Typeface.cpp b/libs/hwui/jni/Typeface.cpp index 0f458dde8b07..707577d6d075 100644 --- a/libs/hwui/jni/Typeface.cpp +++ b/libs/hwui/jni/Typeface.cpp @@ -107,6 +107,11 @@ static jint Typeface_getWeight(CRITICAL_JNI_PARAMS_COMMA jlong faceHandle) { return toTypeface(faceHandle)->fStyle.weight(); } +// Critical Native +static jboolean Typeface_isVariationInstance(CRITICAL_JNI_PARAMS_COMMA jlong faceHandle) { + return toTypeface(faceHandle)->fIsVariationInstance; +} + static jlong Typeface_createFromArray(JNIEnv *env, jobject, jlongArray familyArray, jlong fallbackPtr, int weight, int italic) { ScopedLongArrayRO families(env, familyArray); @@ -398,6 +403,7 @@ static const JNINativeMethod gTypefaceMethods[] = { {"nativeGetReleaseFunc", "()J", (void*)Typeface_getReleaseFunc}, {"nativeGetStyle", "(J)I", (void*)Typeface_getStyle}, {"nativeGetWeight", "(J)I", (void*)Typeface_getWeight}, + {"nativeIsVariationInstance", "(J)Z", (void*)Typeface_isVariationInstance}, {"nativeCreateFromArray", "([JJII)J", (void*)Typeface_createFromArray}, {"nativeSetDefault", "(J)V", (void*)Typeface_setDefault}, {"nativeGetSupportedAxes", "(J)[I", (void*)Typeface_getSupportedAxes}, |