diff options
author | 2024-08-23 16:56:56 +0900 | |
---|---|---|
committer | 2024-08-24 12:36:38 +0900 | |
commit | 3c07e21b71fd3b41827531d425b5787652542fb9 (patch) | |
tree | bdd2edf507c2b2766a934d53a67e657f6ec9d0c1 /libs/hwui/FeatureFlags.h | |
parent | 7477c179b16fc5a27d371fd85f8a392fa1c20a95 (diff) |
Use run based APIs for iterating fonts
Bug: 361260253
Test: TreeHugger
Flag: com.android.text.flags.typeface_redesign
Change-Id: I364c32a19680f4eb0dd992282f13ff2733078bf9
Diffstat (limited to 'libs/hwui/FeatureFlags.h')
-rw-r--r-- | libs/hwui/FeatureFlags.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/hwui/FeatureFlags.h b/libs/hwui/FeatureFlags.h index ac75c077b58f..c1c30f5379ab 100644 --- a/libs/hwui/FeatureFlags.h +++ b/libs/hwui/FeatureFlags.h @@ -49,6 +49,15 @@ inline bool letter_spacing_justification() { #endif // __ANDROID__ } +inline bool typeface_redesign() { +#ifdef __ANDROID__ + static bool flag = com_android_text_flags_typeface_redesign(); + return flag; +#else + return true; +#endif // __ANDROID__ +} + } // namespace text_feature } // namespace android |