skia2/modules/skparagraph
Herb Derby 965e444219 reduce overhead of littleRound
littleRound is used to round widths before a comparison with
maxWidth. The rounding only matters on a very small interval around
maxWidth. Take advantage of this fact to only do the expensive
rounding when close to maxWidth.

This is a 2-3% improvement.

Change-Id: If5b18ed4be56c1c8fa80b97d49930145d0f09b20
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/386844
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Julia Lavrova <jlavrova@google.com>
2021-03-20 00:11:44 +00:00
..
bench Move SkParagraph bits into skparagraph directory. 2020-05-28 13:59:18 +00:00
gm Reland "Removing ICU dependencies from skparagraph BUILD.gn file" 2020-09-11 18:31:24 +00:00
include Support multiple default font families 2021-02-25 21:21:00 +00:00
samples Correct the line height 2021-03-19 18:26:12 +00:00
src reduce overhead of littleRound 2021-03-20 00:11:44 +00:00
tests Glyph positioning in RTL empty lines 2021-02-10 22:27:18 +00:00
utils Fix clang 12 Wsuggest-override and Wsuggest-destructor-override 2020-07-22 01:11:36 +00:00
BUILD.gn Split :tests into :test and :tests. 2021-02-18 17:01:23 +00:00
skparagraph.gni Reland "Removing ICU dependencies from skparagraph BUILD.gn file" 2020-09-11 18:31:24 +00:00
test.html Yet another workaround Thai \n problem (same as txtlib) 2020-11-06 19:33:39 +00:00