Home
last modified time | relevance | path

Searched refs:clusterIndex (Results 1 - 9 of 9) sorted by relevance

/third_party/skia/modules/skparagraph/src/
H A DTextLine.cpp510 for (auto clusterIndex = fClusterRange.start + 1; clusterIndex < fClusterRange.end; ++clusterIndex) {
512 auto& cluster = fOwner->cluster(clusterIndex);
912 for (auto clusterIndex = fGhostClusterRange.start; clusterIndex < fGhostClusterRange.end; ++clusterIndex) {
913 auto& cluster = fOwner->cluster(clusterIndex);
965 for (auto clusterIndex = fGhostClusterRange.end; clusterIndex > fGhostClusterRang
2335 auto clusterIndex = range.start - 1; global() local
2493 size_t clusterIndex = fGhostClusterRange.start; global() local
[all...]
H A DOneLineShaper.cpp260 return TextRange(clusterIndex(glyphRange.start), clusterIndex(glyphRange.end)); in normalizeTextRange()
262 return TextRange(clusterIndex(glyphRange.end - 1), in normalizeTextRange()
264 ? clusterIndex(glyphRange.start - 1) in normalizeTextRange()
322 ClusterIndex ci = clusterIndex(i); in sortOutGlyphs()
829 while (glyphs.start > 0 && clusterIndex(glyphs.start) > textRange.start) {
832 while (glyphs.end < fCurrentRun->size() && clusterIndex(glyphs.end) < textRange.end) {
836 while (glyphs.start > 0 && clusterIndex(glyphs.start - 1) < textRange.end) {
839 while (glyphs.end < fCurrentRun->size() && clusterIndex(glyphs.end) > textRange.start) {
H A DParagraphImpl.h204 Cluster& cluster(ClusterIndex clusterIndex);
205 ClusterIndex clusterIndex(TextIndex textIndex) { in clusterIndex() function in skia::textlayout::final
206 auto clusterIndex = this->fClustersIndexFromCodeUnit[textIndex]; in clusterIndex() local
207 SkASSERT(clusterIndex != EMPTY_INDEX); in clusterIndex()
208 return clusterIndex; in clusterIndex()
215 Run& runByCluster(ClusterIndex clusterIndex);
H A DRun.cpp360 ClusterIndex index = fOwner->clusterIndex(text.end - 1); in scaleFontWithCompressionConfig()
375 clusterRange.start = fOwner->clusterIndex(text.start); in scaleFontWithCompressionConfig()
376 clusterRange.end = fOwner->clusterIndex(text.end - 1); in scaleFontWithCompressionConfig()
379 clusterRange.start = fOwner->clusterIndex(text.end); in scaleFontWithCompressionConfig()
380 clusterRange.end = fOwner->clusterIndex(text.start + 1); in scaleFontWithCompressionConfig()
H A DRun.h135 size_t clusterIndex(size_t pos) const { return fClusterIndexes[pos]; } in clusterIndex() function in skia::textlayout::Run
307 size_t cluster = this->clusterIndex(start); in iterateThroughClustersInTextOrder()
309 auto nextCluster = this->clusterIndex(glyph); in iterateThroughClustersInTextOrder()
329 start == 0 ? this->fUtf8Range.end() : this->clusterIndex(start - 1); in iterateThroughClustersInTextOrder()
H A DOneLineShaper.h102 ClusterIndex clusterIndex(GlyphIndex glyph) { in clusterIndex() function in skia::textlayout::OneLineShaper
H A DParagraphImpl.cpp356 auto targetCluster = cluster(clusterIndex(textIndex)); in GetLineFontMetrics()
1676 Cluster& ParagraphImpl::cluster(ClusterIndex clusterIndex) { in GetLineFontMetrics() argument
1677 SkASSERT(clusterIndex < SkToSizeT(fClusters.size())); in GetLineFontMetrics()
1678 return fClusters[clusterIndex]; in GetLineFontMetrics()
1681 Run& ParagraphImpl::runByCluster(ClusterIndex clusterIndex) { in GetLineFontMetrics()
1682 auto start = cluster(clusterIndex); in GetLineFontMetrics()
/third_party/skia/src/utils/
H A DSkShaperJSONWriter.cpp39 auto checkCluster = [&](size_t clusterIndex) { in is_one_to_one()
40 if (clusters[clusterIndex] >= lastUtf8Index) { in is_one_to_one()
43 size_t utf8ClusterSize = lastUtf8Index - clusters[clusterIndex]; in is_one_to_one()
44 if (SkUTF::CountUTF8(&utf8[clusters[clusterIndex]], utf8ClusterSize) != 1) { in is_one_to_one()
47 lastUtf8Index = clusters[clusterIndex]; in is_one_to_one()
/third_party/skia/modules/skparagraph/tests/
H A DSkShaperJSONWriter.cpp46 auto checkCluster = [&](size_t clusterIndex) { in is_one_to_one()
47 if (clusters[clusterIndex] >= lastUtf8Index) { in is_one_to_one()
50 size_t utf8ClusterSize = lastUtf8Index - clusters[clusterIndex]; in is_one_to_one()
51 if (SkUTF::CountUTF8(&utf8[clusters[clusterIndex]], utf8ClusterSize) != 1) { in is_one_to_one()
54 lastUtf8Index = clusters[clusterIndex]; in is_one_to_one()

Completed in 13 milliseconds