[layoutng] Give the positioned floats vector an inline capacity
For the cases where we store that vector on the stack, we can easily give it an inline capacity and gain some performance. There is one function that can take either a stack-based or LayoutResult-based positioned floats vector; I made that a template so it can accept either one. Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I2afb67e03862f062864dd4d36c740b5c578041aa Reviewed-on: https://chromium-review.googlesource.com/1226159Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Cr-Commit-Position: refs/heads/master@{#593686}
Showing
Please register or sign in to comment