| 70 | |
| 71 | benchmark::DoNotOptimize(builder.build()); |
| 72 | }); |
| 73 | } |
| 74 | |
| 75 | static void TextLayoutEmojiText(benchmark::State& state) { |
| 76 | doBenchmark(state, [&](const auto& fontManager) { |
| 77 | auto font = fontManager->getDefaultFont().moveValue(); |
| 78 | |
| 79 | TextLayoutBuilder builder( |
| 80 | TextAlignLeft, TextOverflowEllipsis, Size::make(5000, 5000), 1, fontManager, false, 1.0f); |
| 81 | |
| 82 | builder.append("Hello World 😀😃😄! We like emojis here 😍😍😍.", |
| 83 | font, |
| 84 | TextLayoutLineHeight::multiple(1.0f), |
| 85 | 0.0f, |
nothing calls this directly
no test coverage detected