summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimationUtil.cpp
diff options
context:
space:
mode:
author Tim Murray <timmurray@google.com> 2023-02-27 11:33:46 -0800
committer Tyler Freeman <fuego@google.com> 2023-03-03 01:10:32 +0000
commit9753dd74387884987c6ea801dc146a2baec86001 (patch)
treec9bdf791d9bdf282ffae71cc745eecff0e0eba9f /cmds/bootanimation/BootAnimationUtil.cpp
parentf19df858faf9cf841debc95a0c0feb3a7f1b81f0 (diff)
FontScaleConverterFactoryTest: 15x perf increase
Most of the time is spent in object allocation for the assert. Check to see if the calculation would fail, and only actually run the assert if it fails. Test: atest FontScaleConverterFactoryTest#allFeasibleScalesAndConversionsDoNotCrash Bug: 270054472 Change-Id: Id879c5442869766ec89e5e8173152d2db6631fd4
Diffstat (limited to 'cmds/bootanimation/BootAnimationUtil.cpp')
0 files changed, 0 insertions, 0 deletions