| 53 | benchmark::DoNotOptimize(builder.build()); |
| 54 | }); |
| 55 | } |
| 56 | |
| 57 | static void TextLayoutLongTextMultiLine(benchmark::State& state) { |
| 58 | doBenchmark(state, [&](const auto& fontManager) { |
| 59 | auto font = fontManager->getDefaultFont().moveValue(); |
| 60 | |
| 61 | TextLayoutBuilder builder( |
| 62 | TextAlignLeft, TextOverflowEllipsis, Size::make(100, 5000), 0, fontManager, false, 1.0f); |
| 63 | |
| 64 | builder.append("Hello World! This string might be pretty long, and because of that we will have to lay it out " |
| 65 | "on multiple lines", |
| 66 | font, |
| 67 | TextLayoutLineHeight::multiple(1.0f), |
| 68 | 0.0f, |
| 69 | TextDecorationNone); |
| 70 | |
| 71 | benchmark::DoNotOptimize(builder.build()); |
| 72 | }); |
| 73 | } |
nothing calls this directly
no test coverage detected