skia2/modules/skparagraph
Ben Wagner c087221875 Pre-allocate space for single run fRunsInVisualOrder.
Most lines have one run in them, so avoid extra allocations in this
case. As a side effect, mark TextLine as moveable but not mem-movable.

The TextLine class used to be used as a mem-movable class, but the
addition of an SkSTArray made it non-mem-movable. Correct this and make
TextLine moveable and document its non-copyable nature. This avoids
ASAN use after free issues.

Change-Id: Icf45a464004e9f270ec46e1c2ddcf29fd356c90a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/292441
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Julia Lavrova <jlavrova@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2020-05-28 14:58:38 +00:00
..
bench Move SkParagraph bits into skparagraph directory. 2020-05-28 13:59:18 +00:00
include Fix TextHeightBehavior 2020-05-11 20:32:55 +00:00
samples Move SkParagraph bits into skparagraph directory. 2020-05-28 13:59:18 +00:00
src Pre-allocate space for single run fRunsInVisualOrder. 2020-05-28 14:58:38 +00:00
tests Initialize ICU before use in SkParagraph. 2020-05-28 14:12:40 +00:00
utils Mixed languages text crashes 2020-04-07 17:43:57 +00:00
BUILD.gn Move SkParagraph bits into skparagraph directory. 2020-05-28 13:59:18 +00:00
skparagraph.gni Skips in underline decorations 2020-05-06 18:59:34 +00:00
test.html Font resolution: all unit tests working 2019-11-08 17:24:14 +00:00