Home
last modified time | relevance | path

Searched refs:GlyphRange (Results 1 – 14 of 14) sorted by relevance

/external/skia/modules/skparagraph/src/
DOneLineShaper.h39 RunBlock(std::shared_ptr<Run> run, TextRange text, GlyphRange glyphs, size_t score) in RunBlock()
48 , fGlyphs(GlyphRange(0, fRun->size())) { } in RunBlock()
52 GlyphRange fGlyphs;
95 TextRange clusteredText(GlyphRange& glyphs);
100 void addUnresolvedWithRun(GlyphRange glyphRange);
101 void sortOutGlyphs(std::function<void(GlyphRange)>&& sortOutUnresolvedBLock);
102 ClusterRange normalizeTextRange(GlyphRange glyphRange);
DOneLineShaper.cpp29 sortOutGlyphs([&](GlyphRange block){ in commitRunBuffer()
114 GlyphRange resolvedGlyphs(resolvedGlyphsStart, unresolved.fGlyphs.start); in fillGaps()
141 GlyphRange resolvedGlyphs(resolvedGlyphsStart, fCurrentRun->size()); in fillGaps()
246 TextRange OneLineShaper::normalizeTextRange(GlyphRange glyphRange) { in normalizeTextRange()
264 GlyphRange(0, this->fCurrentRun->size()), in addFullyResolved()
269 void OneLineShaper::addUnresolvedWithRun(GlyphRange glyphRange) { in addUnresolvedWithRun()
304 void OneLineShaper::sortOutGlyphs(std::function<void(GlyphRange)>&& sortOutUnresolvedBLock) { in sortOutGlyphs()
306 GlyphRange block = EMPTY_RANGE; in sortOutGlyphs()
699 TextRange OneLineShaper::clusteredText(GlyphRange& glyphs) { in clusteredText()
DTextLine.cpp249 GlyphRange glyphs; in ensureTextBlobCachePopulated()
251 glyphs = GlyphRange(start.startPos(), in ensureTextBlobCachePopulated()
254 glyphs = GlyphRange(end.startPos(), in ensureTextBlobCachePopulated()
DRun.h44 typedef SkRange<GlyphIndex> GlyphRange; typedef
/external/skia/experimental/sktext/src/
DVisualRun.h43 SkScalar calculateWidth(GlyphRange glyphRange) const { in calculateWidth()
49 return calculateWidth(GlyphRange(start, end)); in calculateWidth()
126 GlyphRange trailingSpaces() const { return fTrailingSpaces; } in trailingSpaces()
137 GlyphRange fTrailingSpaces; // This is a zero-based index across the line
DText.cpp326 GlyphRange clusterGlyphs; in wrap()
334 clusterGlyphs = GlyphRange(glyphIndex, glyphIndex); in wrap()
567GlyphRange glyphRange = this->textToGlyphs(unicodeText, positionType, runIndex, dirTextRange); in visit()
593 GlyphRange WrappedText::textToGlyphs(UnicodeText* unicodeText, PositionType positionType, RunIndex … in textToGlyphs()
597 GlyphRange glyphRange(0, run.size()); in textToGlyphs()
639 void SelectableText::onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t … in onEndLine()
675 position.fGlyphRange = GlyphRange(0, line.fBoxGlyphs.size() - 1); in findPosition()
742 current.fGlyphRange = GlyphRange(0, 0); in previousPosition()
764 … current.fGlyphRange = GlyphRange(currentLine->fBoxGlyphs.size(), currentLine->fBoxGlyphs.size()); in nextPosition()
819 beginningOfText.fGlyphRange = GlyphRange { 0, 0}; in firstPosition()
[all …]
DLogicalRun.h26 SkScalar calculateWidth(GlyphRange glyphRange) const { in calculateWidth()
32 return calculateWidth(GlyphRange(start, end)); in calculateWidth()
DLine.h94 …Stretch(RunIndex runIndex, GlyphRange glyphRange, TextRange textRange, SkScalar width, const TextM… in Stretch()
/external/skia/experimental/sktext/include/
DInterface.h73 …virtual void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCo… in onEndLine()
141 …Position(PositionType positionType, size_t lineIndex, GlyphRange glyphRange, TextRange textRange, …
145 GlyphRange fGlyphRange;
DText.h175 …virtual void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCo… in onEndLine()
241GlyphRange textToGlyphs(UnicodeText* unicodeText, PositionType positionType, RunIndex runIndex, Di…
276 …Position(PositionType positionType, size_t lineIndex, GlyphRange glyphRange, TextRange textRange, … in Position()
288 GlyphRange fGlyphRange;
347 …void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCount) ove…
DTypes.h130 typedef Range<GlyphIndex> GlyphRange; typedef
/external/skia/experimental/sktext/tests/
DSelectableText.cpp46 GlyphRange trailingSpaces;
67 …void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCount) ove… in onEndLine()
164 REPORTER_ASSERT(reporter, firstPosition.fGlyphRange == GlyphRange(0, 0)); in UNIX_ONLY_TEST()
176 …REPORTER_ASSERT(reporter, lastPosition.fGlyphRange == GlyphRange(lastRun.glyphs.size(), lastRun.gl… in UNIX_ONLY_TEST()
DWrappedText.cpp46 GlyphRange trailingSpaces;
66 …void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCount) ove… in onEndLine()
/external/skia/experimental/sktext/editor/
DSelection.h46 std::vector<GlyphRange> fGlyphRanges;