Home
last modified time | relevance | path

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

/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/modules/skparagraph/src/
DTextWrapper.cpp22 fClusters.startFrom(fEndLine.startCluster(), fEndLine.startPos()); in lookAhead()
27 auto width = fWords.width() + fClusters.width() + cluster->width(); in lookAhead()
33 fClusters.extend(cluster); in lookAhead()
35 fWords.extend(fClusters); in lookAhead()
40 SkScalar nextWordLength = fClusters.width(); in lookAhead()
50 if (fClusters.endPos() - fClusters.startPos() > 1 || in lookAhead()
60 fClusters.extend(cluster); in lookAhead()
67 fClusters.extend(cluster); in lookAhead()
70 if (fClusters.endOfWord()) { in lookAhead()
72 fWords.extend(fClusters); in lookAhead()
[all …]
DParagraphImpl.cpp132 this->fClusters.reset(); in layout()
135 this->fClusters.reset(); in layout()
170 this->fClusters.reset(); in layout()
250 auto runStart = fClusters.size(); in buildClusterTable()
254 if (!fClusters.empty()) { in buildClusterTable()
255 fClusters.back().setBreakType(Cluster::SoftLineBreak); in buildClusterTable()
257 auto& cluster = fClusters.emplace_back(this, runIndex, 0ul, 1ul, text, run.advance().fX, in buildClusterTable()
261 fClusters.reserve(fClusters.size() + run.size()); in buildClusterTable()
271 auto& cluster = fClusters.emplace_back(this, runIndex, glyphStart, glyphEnd, text, in buildClusterTable()
277 run.setClusterRange(runStart, fClusters.size()); in buildClusterTable()
[all …]
DParagraphImpl.h143 SkSpan<Cluster> clusters() { return SkSpan<Cluster>(fClusters.begin(), fClusters.size()); } in clusters()
233 …SkTArray<Cluster, true> fClusters; // kClusterized (cached: text, word spacing, letter spacing, r… variable
DTextWrapper.h176 TextStretch fClusters; variable
192 fClusters.clean(); in reset()
/external/skia/tests/
DShaperTest.cpp27 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()
/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 __anon3576e2610111::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()
/external/skia/modules/skshaper/src/
DSkShaper.cpp212 fClusters = runBuffer.clusters; in runBuffer()
226 SkASSERT(fClusters[i] >= (unsigned)fClusterOffset); in commitRunBuffer()
227 fClusters[i] -= fClusterOffset; in commitRunBuffer()
/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/src/core/
DSkGlyphRun.cpp30 , fClusters{clusters}
36 , fClusters{that.fClusters}
DSkGlyphRun.h42 SkSpan<const uint32_t> clusters() const { return fClusters; } in clusters()
51 const SkSpan<const uint32_t> fClusters; variable
/external/skia/modules/skshaper/include/
DSkShaper.h273 uint32_t* fClusters; variable