/third_party/skia/src/pdf/ |
D | SkClusterator.cpp | 29 : 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()
|
D | SkClusterator.h | 38 uint32_t const * const fClusters;
|
/third_party/skia/experimental/sktext/src/ |
D | LogicalRun.h | 16 … 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; variable
|
D | VisualRun.h | 36 fClusters.reserve_back(clusters.size()); in VisualRun() 38 fClusters.emplace_back(SkToU16(cluster)); in VisualRun() 94 SkSTArray<128, TextIndex, true> fClusters; variable
|
D | LogicalRun.cpp | 22 fClusters.push_back_n(info.glyphCount + 1); in LogicalRun()
|
D | Text.cpp | 347 auto textIndex = run.fClusters[glyphIndex]; in wrap() 489 … SkSpan<uint32_t>((uint32_t*)&logicalRun.fClusters[glyphStart], glyphSize + 1)); in addLine() 532 … run.size(), run.fGlyphs.data(), run.fPositions.data(), run.fClusters.data()); in visit() 601 &run.fClusters[glyphRange.fStart]); in visit() 619 auto textIndex = run.fClusters[glyph]; in textToGlyphs() 644 for (auto& cluster : run.fClusters) { in prepareToEdit()
|
/third_party/skia/modules/skparagraph/src/ |
D | TextWrapper.cpp | 61 fClusters.startFrom(fEndLine.startCluster(), fEndLine.startPos()); in lookAhead() 75 SkScalar width = fWords.width() + fClusters.width() + cluster->width(); in lookAhead() 81 fClusters.extend(cluster); in lookAhead() 83 fWords.extend(fClusters); in lookAhead() 87 if (!fClusters.empty()) { in lookAhead() 90 fWords.extend(fClusters); in lookAhead() 96 fClusters.extend(cluster); in lookAhead() 106 SkScalar nextWordLength = fClusters.width(); in lookAhead() 137 …fClusters = TextStretch(fClusters.startCluster(), nextNonBreakingSpace, fClusters.metrics().getFor… in lookAhead() 139 fWords.extend(fClusters); in lookAhead() [all …]
|
D | ParagraphImpl.cpp | 412 this->fClusters.reset(); in GetLineFontMetrics() 481 this->fClusters.reset(); in GetLineFontMetrics() 838 fClusters.reserve_back(fClusters.size() + cluster_count); in GetLineFontMetrics() 843 auto runStart = fClusters.size(); in GetLineFontMetrics() 847 fClustersIndexFromCodeUnit[i] = fClusters.size(); in GetLineFontMetrics() 850 …fClusters.emplace_back(this, runIndex, 0ul, 1ul, this->text(run.textRange()), run.advance().fX, ru… in GetLineFontMetrics() 864 fClustersIndexFromCodeUnit[i] = fClusters.size(); in GetLineFontMetrics() 869 fClusters.emplace_back(this, runIndex, glyphStart, glyphEnd, text, width, height); in GetLineFontMetrics() 875 run.setClusterRange(runStart, fClusters.size()); in GetLineFontMetrics() 878 fClustersIndexFromCodeUnit[fText.size()] = fClusters.size(); in GetLineFontMetrics() [all …]
|
D | ParagraphCache.cpp | 72 , fClusters(paragraph->fClusters) in ParagraphCacheValue() 86 SkTArray<Cluster, true> fClusters; member in skia::textlayout::ParagraphCacheValue 257 paragraph->fClusters = entry->fValue->fClusters; in updateTo() 268 for (auto& cluster : paragraph->fClusters) { in updateTo()
|
D | TextWrapper.h | 194 TextStretch fClusters; variable 210 fClusters.clean(); in reset()
|
D | ParagraphImpl.h | 150 SkSpan<Cluster> clusters() { return SkSpan<Cluster>(fClusters.begin(), fClusters.size()); } in clusters() 322 …SkTArray<Cluster, true> fClusters; // kClusterized (cached: text, word spacing, letter spacing, r… variable
|
/third_party/skia/modules/skshaper/tests/ |
D | ShaperTest.cpp | 33 std::unique_ptr<uint32_t[]> fClusters; member 52 fClusters = std::make_unique<uint32_t[]>(info.glyphCount); in runBuffer() 56 fClusters.get(), in runBuffer() 83 for (auto&& [glyph, cluster] : SkZip(info.glyphCount, fGlyphs.get(), fClusters.get())) { in commitRunBuffer() 107 REPORTER_ASSERT(fReporter, fClusters[i] >= fRange.begin(), in commitRunBuffer() 109 fClusters[i], fRange.begin(), fResource, i, fGlyphCount); in commitRunBuffer() 110 REPORTER_ASSERT(fReporter, fClusters[i] < fRange.end(), in commitRunBuffer() 112 fClusters[i], fRange.end(), fResource, i, fGlyphCount); in commitRunBuffer()
|
/third_party/skia/tests/ |
D | ShaperTest.cpp | 27 std::unique_ptr<uint32_t[]> fClusters; member 42 fClusters = std::make_unique<uint32_t[]>(info.glyphCount); in runBuffer() 46 fClusters.get(), in runBuffer() 54 REPORTER_ASSERT(fReporter, fClusters[i] >= fRange.begin(), in commitRunBuffer() 56 REPORTER_ASSERT(fReporter, fClusters[i] < fRange.end(), in commitRunBuffer()
|
/third_party/skia/modules/skparagraph/tests/ |
D | SkShaperJSONWriter.cpp | 38 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()
|
D | SkShaperJSONWriter.h | 64 std::vector<uint32_t> fClusters; variable
|
/third_party/skia/src/utils/ |
D | SkShaperJSONWriter.cpp | 31 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()
|
D | SkShaperJSONWriter.h | 63 std::vector<uint32_t> fClusters; variable
|
/third_party/skia/modules/skplaintexteditor/src/ |
D | shape.cpp | 82 uint32_t* fClusters = nullptr; member in __anonf70ebb740111::RunHandler 123 fClusters = runBuffer.clusters; in runBuffer() 147 fClusters, in commitRunBuffer() 152 SkASSERT(fClusters[i] >= (unsigned)fClusterOffset); in commitRunBuffer() 153 fClusters[i] -= fClusterOffset; in commitRunBuffer()
|
/third_party/skia/src/core/ |
D | SkGlyphRun.h | 45 SkSpan<const uint32_t> clusters() const { return fClusters; } in clusters() 56 const SkSpan<const uint32_t> fClusters; variable
|
D | SkGlyphRun.cpp | 32 , fClusters{clusters} 39 , fClusters{that.fClusters}
|
/third_party/skia/modules/skshaper/src/ |
D | SkShaper.cpp | 369 fClusters = runBuffer.clusters; 383 SkASSERT(fClusters[i] >= (unsigned)fClusterOffset); 384 fClusters[i] -= fClusterOffset;
|
/third_party/skia/modules/skshaper/include/ |
D | SkShaper.h | 326 uint32_t* fClusters; variable
|