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

Function TextLayoutArabicText

snap_drawing/src/benchmark/main.cpp:84–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 builder.append("Hello World 😀😃😄! We like emojis here 😍😍😍.",
83 font,
84 TextLayoutLineHeight::multiple(1.0f),
85 0.0f,
86 TextDecorationNone);
87
88 benchmark::DoNotOptimize(builder.build());
89 });
90}
91
92static void TextLayoutArabicText(benchmark::State& state) {
93 doBenchmark(state, [&](const auto& fontManager) {
94 auto font = fontManager->getDefaultFont().moveValue();
95
96 TextLayoutBuilder builder(
97 TextAlignLeft, TextOverflowEllipsis, Size::make(5000, 5000), 1, fontManager, false, 1.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