Home
last modified time | relevance | path

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

/external/skia/modules/skparagraph/src/
DTextWrapper.cpp45 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()
113fClusters = TextStretch(fClusters.startCluster(), nextNonBreakingSpace, fClusters.metrics().getFor… in lookAhead()
115 fWords.extend(fClusters); in lookAhead()
[all …]
DParagraphImpl.cpp167 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()
402fClusters.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 …]
DParagraphImpl.h143 SkSpan<Cluster> clusters() { return SkSpan<Cluster>(fClusters.begin(), fClusters.size()); }
252 …SkTArray<Cluster, true> fClusters; // kClusterized (cached: text, word spacing, letter spacing, r…
DTextWrapper.h188 TextStretch fClusters; variable
204 fClusters.clean(); in reset()
/external/skia/src/pdf/
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()
DSkClusterator.h38 uint32_t const * const fClusters;
/external/skqp/src/pdf/
DSkClusterator.cpp29 : fClusters(run.clusters().data()) in SkClusterator()
34 if (fClusters) { in SkClusterator()
36 fReversedChars = is_reversed(fClusters, fGlyphCount); 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()
DSkClusterator.h38 const uint32_t* fClusters;
/external/skia/experimental/sktext/src/
DTextRun.cpp18 fClusters.push_back_n(info.glyphCount + 1); in TextRun()
22 fClusters[info.glyphCount] = in TextRun()
30 fClusters[fGlyphs.size()] = this->leftToRight() ? fUtf8Range.end() : fUtf8Range.begin(); in commit()
34 return {fGlyphs.data(), fPositions.data(), nullptr, fClusters.data(), {0.0f, 0.0f} }; in newRunBuffer()
DWrapper.cpp16 for (size_t i = 0; i < run->fClusters.size(); ++i) { in glyphRange()
17 auto cluster = run->fClusters[i]; in glyphRange()
31 for (size_t i = 0; i < run->fClusters.size(); ++i) { in textRange()
32 auto cluster = run->fClusters[i]; in textRange()
61 auto textIndex = run.fClusters[glyphIndex]; in breakTextIntoLines()
DProcessor.cpp201 for (auto index : run.fClusters) { in markGlyphs()
221 auto textIndex = run.fClusters[glyphIndex]; in iterateByVisualOrder()
263 TextRange textRange(run.fClusters[startGlyph], run.fClusters[endGlyph]); in iterateByVisualOrder()
268 auto textIndex = run.fClusters[glyphIndex]; in iterateByVisualOrder()
294 textRange.fEnd = run.fClusters[endGlyph]; in iterateByVisualOrder()
296 textRange.fStart = run.fClusters[endGlyph]; in iterateByVisualOrder()
DTextRun.h36 SkSTArray<128, uint32_t, true> fClusters; variable
/external/skia/tests/
DShaperTest.cpp27 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()
/external/skia/src/utils/
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()
DSkShaperJSONWriter.h63 std::vector<uint32_t> fClusters; variable
/external/skia/modules/skplaintexteditor/src/
Dshape.cpp82 uint32_t* fClusters = nullptr; member in __anonc2d4c8f60111::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()
/external/skia/modules/skshaper/src/
DSkShaper.cpp232 fClusters = runBuffer.clusters; in runBuffer()
246 SkASSERT(fClusters[i] >= (unsigned)fClusterOffset); in commitRunBuffer()
247 fClusters[i] -= fClusterOffset; in commitRunBuffer()
/external/skia/src/core/
DSkGlyphRun.h45 SkSpan<const uint32_t> clusters() const { return fClusters; } in clusters()
56 const SkSpan<const uint32_t> fClusters; variable
DSkGlyphRun.cpp32 , fClusters{clusters}
39 , fClusters{that.fClusters}
/external/skqp/src/core/
DSkGlyphRun.cpp30 , fClusters{clusters}
37 , fClusters{that.fClusters}
DSkGlyphRun.h41 SkSpan<const uint32_t> clusters() const { return fClusters; } in clusters()
52 const SkSpan<const uint32_t> fClusters; variable
/external/skia/modules/skshaper/include/
DSkShaper.h275 uint32_t* fClusters; variable