mirror of
https://github.com/androidx/media.git
synced 2025-05-03 21:57:46 +08:00

The draw method checks if all inputs are the same as in the previous call. The options to strip the subtitle of its styles were applied each time, in order to check if the final CharSequence is still the same. This additional computation (and memory allocations) can be prevented by checking if the original CharSequence (including all styles) and the flags to remove those styles are the same. The actual style removal is now part of setupTextlayout(). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=153061064