Home
last modified time | relevance | path

Searched refs:fClusters (Results 1 - 22 of 22) sorted by relevance

/third_party/skia/src/pdf/
H A DSkClusterator.cpp29 : fClusters(run.clusters().data()) in SkClusterator()
33 , fReversedChars(fClusters ? is_reversed(fClusters, fGlyphCount) : false) in SkClusterator()
35 if (fClusters) { in SkClusterator()
46 if (!fClusters || !fUtf8Text) { in next()
50 uint32_t cluster = fClusters[clusterGlyphIndex]; in next()
53 } while (fCurrentGlyphIndex < fGlyphCount && cluster == fClusters[fCurrentGlyphIndex]); in next()
57 uint32_t c = fClusters[i]; in next()
H A DSkClusterator.h38 uint32_t const * const fClusters; member in SkClusterator
/third_party/skia/experimental/sktext/src/
H A DLogicalRun.h16 return {fGlyphs.data(), fPositions.data(), fOffsets.data(), fClusters.data(), {0.0f, 0.0f} }; in newRunBuffer()
21 fClusters[fGlyphs.size()] = this->leftToRight() ? fUtf8Range.end() : fUtf8Range.begin(); in commit()
46 for(; glyph < fClusters.size(); ++glyph) { in forEachCluster()
47 callback(glyph, fRunStart + fClusters[glyph]); in forEachCluster()
60 for (size_t glyph = 0; glyph < fClusters.size(); ++glyph) { in convertClusterIndexes()
61 fClusters[glyph] = callback(fClusters[glyph]); in convertClusterIndexes()
80 SkSTArray<128, uint32_t, true> fClusters; member in skia::text::LogicalRun
H A DVisualRun.h36 fClusters.reserve_back(clusters.size()); in VisualRun()
38 fClusters.emplace_back(SkToU16(cluster)); in VisualRun()
94 SkSTArray<128, TextIndex, true> fClusters; member in skia::text::VisualRun
H A DLogicalRun.cpp22 fClusters.push_back_n(info.glyphCount + 1); in LogicalRun()
H A DText.cpp347 auto textIndex = run.fClusters[glyphIndex];
489 SkSpan<uint32_t>((uint32_t*)&logicalRun.fClusters[glyphStart], glyphSize + 1));
532 run.size(), run.fGlyphs.data(), run.fPositions.data(), run.fClusters.data());
601 &run.fClusters[glyphRange.fStart]);
619 auto textIndex = run.fClusters[glyph];
644 for (auto& cluster : run.fClusters) {
/third_party/skia/modules/skparagraph/src/
H A DTextWrapper.cpp87 fClusters.startFrom(fEndLine.startCluster(), fEndLine.startPos()); in lookAhead()
106 SkScalar width = fWords.width() + fClusters.width() + cluster->width() + totalFakeSpacing; in lookAhead()
112 fClusters.extend(cluster); in lookAhead()
116 tabAlignRet = textTabAlign.processTab(fWords, fClusters, cluster, totalFakeSpacing); in lookAhead()
118 tabAlignRet = textTabAlign.processEndofWord(fWords, fClusters, cluster, totalFakeSpacing); in lookAhead()
124 fWords.extend(fClusters); in lookAhead()
128 if (!fClusters.empty()) { in lookAhead()
131 fWords.extend(fClusters); in lookAhead()
137 fClusters.extend(cluster); in lookAhead()
146 textTabAlign.processEndofLine(fWords, fClusters, cluste in lookAhead()
[all...]
H A DParagraphImpl.cpp462 this->fClusters.reset(); in GetLineFontMetrics()
549 this->fClusters.reset(); in GetLineFontMetrics()
1052 fClusters.reserve_back(fClusters.size() + cluster_count); in GetLineFontMetrics()
1057 auto runStart = fClusters.size(); in GetLineFontMetrics()
1061 fClustersIndexFromCodeUnit[i] = fClusters.size(); in GetLineFontMetrics()
1064 fClusters.emplace_back(this, runIndex, 0ul, 1ul, this->text(run.textRange()), run.advance().fX, run.advance().fY); in GetLineFontMetrics()
1078 fClustersIndexFromCodeUnit[i] = fClusters.size(); in GetLineFontMetrics()
1083 fClusters.emplace_back(this, runIndex, glyphStart, glyphEnd, text, width, height); in GetLineFontMetrics()
1089 run.setClusterRange(runStart, fClusters in GetLineFontMetrics()
[all...]
H A DParagraphCache.cpp78 , fClusters(paragraph->fClusters) in ParagraphCacheValue()
93 SkTArray<Cluster, true> fClusters; member in skia::textlayout::ParagraphCacheValue
287 paragraph->fClusters = entry->fValue->fClusters; in updateTo()
298 for (auto& cluster : paragraph->fClusters) { in updateTo()
H A DTextWrapper.h208 TextStretch fClusters; member in skia::textlayout::TextWrapper
224 fClusters.clean(); in reset()
H A DParagraphImpl.h176 SkSpan<Cluster> clusters() { return SkSpan<Cluster>(fClusters.begin(), fClusters.size()); } in clusters()
403 SkTArray<Cluster, true> fClusters; // kClusterized (cached: text, word spacing, letter spacing, resolved fonts) member in skia::textlayout::final
/third_party/skia/modules/skshaper/tests/
H A DShaperTest.cpp33 std::unique_ptr<uint32_t[]> fClusters; member
52 fClusters = std::make_unique<uint32_t[]>(info.glyphCount);
56 fClusters.get(),
83 for (auto&& [glyph, cluster] : SkZip(info.glyphCount, fGlyphs.get(), fClusters.get())) {
107 REPORTER_ASSERT(fReporter, fClusters[i] >= fRange.begin(),
109 fClusters[i], fRange.begin(), fResource, i, fGlyphCount);
110 REPORTER_ASSERT(fReporter, fClusters[i] < fRange.end(),
112 fClusters[i], fRange.end(), fResource, i, fGlyphCount);
/third_party/skia/tests/
H A DShaperTest.cpp27 std::unique_ptr<uint32_t[]> fClusters; member
42 fClusters = std::make_unique<uint32_t[]>(info.glyphCount);
46 fClusters.get(),
54 REPORTER_ASSERT(fReporter, fClusters[i] >= fRange.begin(),
56 REPORTER_ASSERT(fReporter, fClusters[i] < fRange.end(),
/third_party/skia/src/utils/
H A DSkShaperJSONWriter.cpp31 fClusters.resize(info.glyphCount); in runBuffer()
32 return {fGlyphs.data(), fPositions.data(), nullptr, fClusters.data(), {0, 0}}; in runBuffer()
85 if (is_one_to_one(fUTF8.c_str(), info.utf8Range.begin(), info.utf8Range.end(), fClusters)) { in commitRunBuffer()
96 for (auto cluster : fClusters) { in commitRunBuffer()
104 SkMakeSpan(fClusters), in commitRunBuffer()
H A DSkShaperJSONWriter.h63 std::vector<uint32_t> fClusters; member in final
/third_party/skia/modules/skplaintexteditor/src/
H A Dshape.cpp82 uint32_t* fClusters = nullptr; member in __anon18604::final
123 fClusters = runBuffer.clusters; in runBuffer()
136 // SkASSERT(fClusters[i] >= info.utf8Range.begin()); in commitRunBuffer()
138 // SkASSERT(fClusters[i] < info.utf8Range.end()); in commitRunBuffer()
147 fClusters, in commitRunBuffer()
152 SkASSERT(fClusters[i] >= (unsigned)fClusterOffset); in commitRunBuffer()
153 fClusters[i] -= fClusterOffset; in commitRunBuffer()
/third_party/skia/modules/skparagraph/tests/
H A DSkShaperJSONWriter.cpp38 fClusters.resize(info.glyphCount); in runBuffer()
39 return {fGlyphs.data(), fPositions.data(), nullptr, fClusters.data(), {0, 0}}; in runBuffer()
92 if (is_one_to_one(fUTF8.c_str(), info.utf8Range.begin(), info.utf8Range.end(), fClusters)) { in commitRunBuffer()
103 for (auto cluster : fClusters) { in commitRunBuffer()
111 SkSpan(fClusters), in commitRunBuffer()
H A DSkShaperJSONWriter.h64 std::vector<uint32_t> fClusters; member in final
/third_party/skia/src/core/
H A DSkGlyphRun.h45 SkSpan<const uint32_t> clusters() const { return fClusters; } in clusters()
56 const SkSpan<const uint32_t> fClusters; member in SkGlyphRun
H A DSkGlyphRun.cpp32 , fClusters{clusters}
39 , fClusters{that.fClusters}
/third_party/skia/modules/skshaper/src/
H A DSkShaper.cpp372 fClusters = runBuffer.clusters; in Make()
386 SkASSERT(fClusters[i] >= (unsigned)fClusterOffset); in Make()
387 fClusters[i] -= fClusterOffset; in Make()
/third_party/skia/modules/skshaper/include/
H A DSkShaper.h330 uint32_t* fClusters; member in SkiaRsText::final

Completed in 14 milliseconds