| 24 | } |
| 25 | |
| 26 | static void TextLayoutSimpleTextSingleLine(benchmark::State& state) { |
| 27 | doBenchmark(state, [&](const auto& fontManager) { |
| 28 | auto font = fontManager->getDefaultFont().moveValue(); |
| 29 | |
| 30 | TextLayoutBuilder builder( |
| 31 | TextAlignLeft, TextOverflowEllipsis, Size::make(5000, 5000), 1, fontManager, false, 1.0f); |
| 32 | |
| 33 | builder.append("Hello World!", font, TextLayoutLineHeight::multiple(1.0f), 0.0f, TextDecorationNone); |
| 34 | |
| 35 | benchmark::DoNotOptimize(builder.build()); |
| 36 | }); |
| 37 | } |
| 38 | |
| 39 | static void TextLayoutLongTextSingleLine(benchmark::State& state) { |
nothing calls this directly
no test coverage detected