Home
last modified time | relevance | path

Searched refs:fRange (Results 1 – 12 of 12) sorted by relevance

/third_party/skia/modules/skshaper/tests/
DShaperTest.cpp34 SkShaper::RunHandler::Range fRange; member
49 fRange = info.utf8Range; in runBuffer()
61 REPORTER_ASSERT(fReporter, fRange.begin() == info.utf8Range.begin(), "%s", fResource); in commitRunBuffer()
62 REPORTER_ASSERT(fReporter, fRange.size() == info.utf8Range.size(), "%s", fResource); in commitRunBuffer()
63 if (!(fRange.begin() + fRange.size() <= fUtf8Size)) { in commitRunBuffer()
64 REPORTER_ASSERT(fReporter, fRange.begin() + fRange.size() <= fUtf8Size, "%s",fResource); in commitRunBuffer()
90 for (const char c : SkSpan(fUtf8 + fRange.begin(), fRange.size())) { in commitRunBuffer()
99 fResource, fRange.begin(), fRange.end(), fRange.size(), fGlyphCount, in commitRunBuffer()
101 (int)fRange.size(), fUtf8 + fRange.begin(), in commitRunBuffer()
107 REPORTER_ASSERT(fReporter, fClusters[i] >= fRange.begin(), in commitRunBuffer()
[all …]
/third_party/skia/modules/skparagraph/src/
DParagraphCache.cpp107 if (ph.fRange.width() == 0) { in computeHash()
110 hash = mix(hash, SkGoodHash()(ph.fRange)); in computeHash()
139 hash = mix(hash, SkGoodHash()(ts.fRange)); in computeHash()
206 if (tsa.fRange.width() != tsb.fRange.width()) { in operator ==()
209 if (tsa.fRange.start != tsb.fRange.start) { in operator ==()
216 if (tsa.fRange.width() == 0 && tsb.fRange.width() == 0) { in operator ==()
222 if (tsa.fRange.width() != tsb.fRange.width()) { in operator ==()
225 if (tsa.fRange.start != tsb.fRange.start) { in operator ==()
DOneLineShaper.cpp151 auto blockText = block.fRange; in finish()
364 size_t start = std::max(block.fRange.start, textRange.start); in generateBlockRange()
365 size_t end = std::min(block.fRange.end, textRange.end); in generateBlockRange()
389 block.fRange.start, in iterateThroughFontStyles()
390 block.fRange.end in iterateThroughFontStyles()
397 SkSetFourByteTag('l', 'i', 'g', 'a'), 0, block.fRange.start, block.fRange.end in iterateThroughFontStyles()
407 … SkASSERT(combinedBlock.fRange.width() == 0 || combinedBlock.fRange.end == block.fRange.start); in iterateThroughFontStyles()
409 if (!combinedBlock.fRange.empty()) { in iterateThroughFontStyles()
419 combinedBlock.fRange = blockRange; in iterateThroughFontStyles()
566 if (placeholder.fRange.width() == 0) { in iterateThroughShapingRegions()
[all …]
DParagraphImpl.h57 StyleBlock() : fRange(EMPTY_RANGE), fStyle() { } in StyleBlock()
58 StyleBlock(size_t start, size_t end, const TStyle& style) : fRange(start, end), fStyle(style) {} in StyleBlock()
59 StyleBlock(TextRange textRange, const TStyle& style) : fRange(textRange), fStyle(style) {} in StyleBlock()
61 SkASSERT(fRange.end == tail.start); in add()
62 fRange = TextRange(fRange.start, fRange.start + fRange.width() + tail.width()); in add()
64 TextRange fRange; member
DIterators.h31 fCurrentChar = fText.begin() + fCurrentStyle->fRange.end; in consume()
37 fCurrentChar = fText.begin() + fCurrentStyle->fRange.end; in consume()
DParagraphBuilderImpl.cpp61 if (!fStyledBlocks.empty() && fStyledBlocks.back().fRange.end == fUtf8.size() && in pushStyle()
135 TextRange textBefore(fPlaceholders.empty() ? 0 : fPlaceholders.back().fRange.end, in addPlaceholder()
154 if (last.fRange.start == fUtf8.size()) { in endRunIfNeeded()
157 last.fRange.end = fUtf8.size(); in endRunIfNeeded()
DParagraphImpl.cpp544 if (block.fRange.width() > 0) { in applySpacingAndBuildClusterTable()
561 fTextStyles[0].fRange.width() == fText.size() && fRuns.size() == 1) { in applySpacingAndBuildClusterTable()
595 while (!cluster->startsIn(currentStyle->fRange)) { in applySpacingAndBuildClusterTable()
915 if (block.fRange.end <= textRange.start) { in findAllBlocks()
918 if (block.fRange.start >= textRange.end) { in findAllBlocks()
DTextLine.cpp823 if (run.leftToRight() && cluster->textRange().end <= block.fRange.end) { in shapeEllipsis()
826 } else if (!run.leftToRight() && cluster->textRange().start <= block.fRange.end) { in shapeEllipsis()
1085 auto intersect = intersected(block->fRange, testRange); in iterateThroughSingleRunByStyles()
1119 intersect = intersected(block->fRange, textRange); in iterateThroughSingleRunByStyles()
/third_party/skia/tests/
DShaperTest.cpp28 SkShaper::RunHandler::Range fRange; member
39 fRange = info.utf8Range; in runBuffer()
51 REPORTER_ASSERT(fReporter, fRange.begin() == info.utf8Range.begin(), "%s", fResource); in commitRunBuffer()
52 REPORTER_ASSERT(fReporter, fRange.size() == info.utf8Range.size(), "%s", fResource); in commitRunBuffer()
54 REPORTER_ASSERT(fReporter, fClusters[i] >= fRange.begin(), in commitRunBuffer()
56 REPORTER_ASSERT(fReporter, fClusters[i] < fRange.end(), in commitRunBuffer()
DOpChainTest.cpp110 for (unsigned i = 0; i < vr.fRange.fLength; ++i) { in writeResult()
111 result[vr.fRange.fOffset + i] = vr.fValue; in writeResult()
159 Range fRange; member
/third_party/skia/modules/skparagraph/include/
DTextStyle.h357 Block(size_t start, size_t end, const TextStyle& style) : fRange(start, end), fStyle(style) {} in Block()
358 Block(TextRange textRange, const TextStyle& style) : fRange(textRange), fStyle(style) {} in Block()
361 SkASSERT(fRange.end == tail.start); in add()
362 fRange = TextRange(fRange.start, fRange.start + fRange.width() + tail.width()); in add()
365 TextRange fRange = EMPTY_RANGE; member
379 : fRange(start, end) in Placeholder()
385 TextRange fRange = EMPTY_RANGE; member
/third_party/skia/src/effects/imagefilters/
DSkMorphologyImageFilter.cpp206 float fRange[2]; member in GrMorphologyEffect
279 pdman.set2f(fRangeUni, m.fRange[0], m.fRange[1]); in onMakeProgramImpl()
316 fRange[0] = range[0]; in GrMorphologyEffect()
317 fRange[1] = range[1]; in GrMorphologyEffect()
328 fRange[0] = that.fRange[0]; in GrMorphologyEffect()
329 fRange[1] = that.fRange[1]; in GrMorphologyEffect()