18 if (
count < 2 || clusters[0] == 0 || clusters[
count - 1] != 0) {
21 for (uint32_t
i = 0;
i + 1 <
count; ++
i) {
22 if (clusters[
i + 1] > clusters[
i]) {
30 : fClusters(
run.clusters().
data())
37 SkASSERT(fUtf8Text && fTextByteLength > 0 && fGlyphCount > 0);
39 SkASSERT(!fUtf8Text && fTextByteLength == 0);
44 if (fCurrentGlyphIndex >= fGlyphCount) {
45 return Cluster{
nullptr, 0, 0, 0};
47 if (!fClusters || !fUtf8Text) {
48 return Cluster{
nullptr, 0, fCurrentGlyphIndex++, 1};
50 uint32_t clusterGlyphIndex = fCurrentGlyphIndex;
51 uint32_t cluster = fClusters[clusterGlyphIndex];
54 }
while (fCurrentGlyphIndex < fGlyphCount && cluster == fClusters[fCurrentGlyphIndex]);
55 uint32_t clusterGlyphCount = fCurrentGlyphIndex - clusterGlyphIndex;
56 uint32_t clusterEnd = fTextByteLength;
57 for (
unsigned i = 0;
i < fGlyphCount; ++
i) {
58 uint32_t c = fClusters[
i];
59 if (c > cluster && c < clusterEnd) {
63 uint32_t clusterLen = clusterEnd - cluster;
64 return Cluster{fUtf8Text + cluster, clusterLen, clusterGlyphIndex, clusterGlyphCount};
static bool is_reversed(const uint32_t *clusters, uint32_t count)
constexpr uint32_t SkToU32(S x)
SkClusterator(const sktext::GlyphRun &run)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
std::shared_ptr< const fml::Mapping > data