MCPcopy Create free account
hub / github.com/Snapchat/Valdi / TextLayoutEmojiText

Function TextLayoutEmojiText

snap_drawing/src/benchmark/main.cpp:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71 benchmark::DoNotOptimize(builder.build());
72 });
73}
74
75static 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,

Callers

nothing calls this directly

Calls 4

doBenchmarkFunction · 0.85
getDefaultFontMethod · 0.80
appendMethod · 0.65
buildMethod · 0.45

Tested by

no test coverage detected