/third_party/flutter/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/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/modules/skparagraph/src/ |
D | TextWrapper.cpp | 45 fClusters.startFrom(fEndLine.startCluster(), fEndLine.startPos()); in lookAhead() 54 SkScalar width = fWords.width() + fClusters.width() + cluster->width(); in lookAhead() 58 fClusters.extend(cluster); in lookAhead() 60 fWords.extend(fClusters); in lookAhead() 63 if (!fClusters.empty()) { in lookAhead() 66 fWords.extend(fClusters); in lookAhead() 72 fClusters.extend(cluster); in lookAhead() 82 SkScalar nextWordLength = fClusters.width(); in lookAhead() 113 …fClusters = TextStretch(fClusters.startCluster(), nextNonBreakingSpace, fClusters.metrics().getFor… in lookAhead() 115 fWords.extend(fClusters); in lookAhead() [all …]
|
D | ParagraphImpl.cpp | 167 this->fClusters.reset(); in layout() 390 fClusters.reserve_back(cluster_count); in buildClusterTable() 395 auto runStart = fClusters.size(); in buildClusterTable() 399 fClustersIndexFromCodeUnit[i] = fClusters.size(); in buildClusterTable() 402 …fClusters.emplace_back(this, runIndex, 0ul, 1ul, this->text(run.textRange()), run.advance().fX, ru… in buildClusterTable() 416 fClustersIndexFromCodeUnit[i] = fClusters.size(); in buildClusterTable() 419 fClusters.emplace_back(this, runIndex, glyphStart, glyphEnd, text, width, height); in buildClusterTable() 423 run.setClusterRange(runStart, fClusters.size()); in buildClusterTable() 426 fClustersIndexFromCodeUnit[fText.size()] = fClusters.size(); in buildClusterTable() 427 fClusters.emplace_back(this, EMPTY_RUN, 0, 0, this->text({fText.size(), fText.size()}), 0, 0); in buildClusterTable() [all …]
|
D | ParagraphImpl.h | 144 SkSpan<Cluster> clusters() { return SkSpan<Cluster>(fClusters.begin(), fClusters.size()); } 253 …SkTArray<Cluster, true> fClusters; // kClusterized (cached: text, word spacing, letter spacing, r…
|
/third_party/flutter/skia/modules/skparagraph/src/ |
D | TextWrapper.cpp | 12 fClusters.startFrom(fEndLine.startCluster(), fEndLine.startPos()); in lookAhead() 15 if (fWords.width() + fClusters.width() + cluster->width() > maxWidth) { in lookAhead() 19 fWords.extend(fClusters); in lookAhead() 24 auto delta = maxWidth - (fWords.width() + fClusters.width()); in lookAhead() 32 SkScalar nextWordLength = fClusters.width(); in lookAhead() 49 fClusters.extend(cluster); in lookAhead() 52 if (fClusters.endOfWord()) { in lookAhead() 54 fWords.extend(fClusters); in lookAhead() 68 } else if (fClusters.width() > 0) { in moveForward() 69 fEndLine.extend(fClusters); in moveForward() [all …]
|
D | ParagraphCache.cpp | 28 , fClusters(paragraph->fClusters) { } in ParagraphCacheValue() 36 SkTArray<Cluster, true> fClusters; member in skia::textlayout::ParagraphCacheValue 157 paragraph->fClusters.reset(); in updateTo() 158 paragraph->fClusters = entry->fValue->fClusters; in updateTo() 159 for (auto& cluster : paragraph->fClusters) { in updateTo()
|
D | ParagraphImpl.cpp | 136 this->fClusters.reset(); in layout() 143 fClusters.reset(); in layout() 226 auto runStart = fClusters.size(); in buildClusterTable() 227 fClusters.reserve(fClusters.size() + fRuns.size()); in buildClusterTable() 239 … auto& cluster = fClusters.emplace_back(this, runIndex, glyphStart, glyphEnd, text, width, height); in buildClusterTable() 243 run.setClusterRange(runStart, fClusters.size()); in buildClusterTable() 257 Cluster* current = fClusters.begin(); in markLineBreaks() 258 while (!breaker.eof() && current < fClusters.end()) { in markLineBreaks() 260 while (current < fClusters.end()) { in markLineBreaks() 316 fClusters.emplace_back(this, EMPTY_RUN, 0, 0, SkSpan<const char>(), 0, 0); in markLineBreaks() [all …]
|
D | ParagraphImpl.h | 83 SkSpan<Cluster> clusters() { return SkSpan<Cluster>(fClusters.begin(), fClusters.size()); } in clusters() 88 auto& cluster = fClusters[index]; in shiftCluster() 178 …SkTArray<Cluster, true> fClusters; // kClusterized (cached: text, word spacing, letter spacing, r… variable
|
/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()
|
/third_party/flutter/skia/tests/ |
D | ShaperTest.cpp | 27 std::unique_ptr<uint32_t[]> fClusters; member 42 fClusters.reset(new 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/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/flutter/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()
|
/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()
|
/third_party/skia/modules/skplaintexteditor/src/ |
D | shape.cpp | 82 uint32_t* fClusters = nullptr; member in __anonac8af9670111::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/flutter/skia/experimental/editor/ |
D | shape.cpp | 82 uint32_t* fClusters = nullptr; member in __anonbd35bb230111::RunHandler 124 fClusters = runBuffer.clusters; in runBuffer() 148 fClusters, in commitRunBuffer() 153 SkASSERT(fClusters[i] >= (unsigned)fClusterOffset); in commitRunBuffer() 154 fClusters[i] -= fClusterOffset; in commitRunBuffer()
|
/third_party/flutter/skia/modules/skshaper/src/ |
D | SkShaper.cpp | 159 fClusters = runBuffer.clusters; in runBuffer() 173 SkASSERT(fClusters[i] >= (unsigned)fClusterOffset); in commitRunBuffer() 174 fClusters[i] -= fClusterOffset; in commitRunBuffer()
|
/third_party/skia/modules/skshaper/src/ |
D | SkShaper.cpp | 232 fClusters = runBuffer.clusters; in runBuffer() 246 SkASSERT(fClusters[i] >= (unsigned)fClusterOffset); in commitRunBuffer() 247 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
|
/third_party/flutter/skia/src/core/ |
D | SkGlyphRun.h | 42 SkSpan<const uint32_t> clusters() const { return fClusters; } in clusters() 53 const SkSpan<const uint32_t> fClusters; variable
|
D | SkGlyphRun.cpp | 31 , fClusters{clusters} 38 , fClusters{that.fClusters}
|