/external/skia/experimental/sktext/include/ |
D | Types.h | 50 Range() : fStart(0), fEnd(0) { } in Range() 51 Range(T start, T end) : fStart(start) , fEnd(end) { } in Range() 54 return fEnd >= fStart; in leftToRight() 59 std::swap(this->fStart, this->fEnd); in normalize() 65 return leftToRight() ? SkToInt(fEnd - fStart) : SkToInt(fStart - fEnd); in width() 70 fEnd = 0; in clean() 74 return fEnd == fStart; in isEmpty() 82 SkASSERT(this->fEnd == tail.fStart || this->fStart == tail.fEnd); in merge() 84 this->fEnd = std::max(this->fEnd, tail.fEnd); in merge() 87 std::swap(this->fStart, this->fEnd); in merge() [all …]
|
/external/skia/modules/skparagraph/src/ |
D | TextWrapper.h | 37 TextStretch() : fStart(), fEnd(), fWidth(0), fWidthWithGhostSpaces(0) {} in TextStretch() 39 … : fStart(s, 0), fEnd(e, e->endPos()), fMetrics(forceStrut), fWidth(0), fWidthWithGhostSpaces(0) { in TextStretch() 54 inline Cluster* endCluster() const { return fEnd.cluster(); } in endCluster() 58 inline size_t endPos() const { return fEnd.position(); } in endPos() 59 bool endOfCluster() { return fEnd.position() == fEnd.cluster()->endPos(); } in endOfCluster() 62 (fEnd.cluster()->isHardBreak() || fEnd.cluster()->isSoftBreak()); in endOfWord() 67 fEnd = stretch.fEnd; in extend() 72 bool empty() { return fStart.cluster() == fEnd.cluster() && in empty() 73 fStart.position() == fEnd.position(); } in empty() 81 fEnd = ClusterPos(cluster, cluster->endPos()); in extend() [all …]
|
/external/skqp/tools/bookmaker/ |
D | textParser.h | 30 , fEnd(end) in TextParser() 39 while (ptr < fEnd) { in anyOf() 66 while (matchStart < fEnd && !isalpha(matchStart[0])) { in anyWord() 71 while (matchEnd < fEnd) { in anyWord() 96 } while (matchStart < fEnd); in anyWord() 146 if ((result > fStart && isalnum(result[-1])) || (result + len < fEnd in containsWord() 162 while (++ptr < fEnd) { in doubleLF() 187 bool eof() const { return fChar >= fEnd; } in eof() 192 if (ptr >= fEnd) { in lineEnd() 210 SkASSERT(fChar < fEnd); in next() [all …]
|
D | mdOut.h | 76 if (fEnd < fRefEnd && '~' == fEnd[0]) { in findEnd() 77 ++fEnd; in findEnd() 80 while (fEnd < fRefEnd && (isalnum(fEnd[0]) || '-' == fEnd[0] || '_' == fEnd[0])) { in findEnd() 81 ++fEnd; in findEnd() 83 if (fEnd + 1 >= fRefEnd || '/' != fEnd[0] || start == fEnd || !isalpha(fEnd[-1]) in findEnd() 84 || !isalpha(fEnd[1])) { in findEnd() 87 ++fEnd; // skip slash in findEnd() 89 while (start != fEnd && '-' == fEnd[-1]) { in findEnd() 90 --fEnd; in findEnd() 92 return start == fEnd; in findEnd() [all …]
|
D | textParser.cpp | 41 if (lineStart >= fEnd) { in reportWarning() 44 SkASSERT(lineStart < fEnd); in reportWarning() 45 TextParser err(fFileName, lineStart, fEnd, fLineCount); in reportWarning() 75 fEnd = definition->fContentEnd; in setForErrorReporting() 91 end = fEnd; in typedefName()
|
/external/skqp/src/core/ |
D | SkDeque.cpp | 15 char* fEnd; // end of used section in this chunk member 23 fBegin = fEnd = nullptr; in init() 82 first->fEnd = first->fStop; in push_front() 125 end = last->fEnd + fElemSize; in push_back() 136 last->fEnd = end; in push_back() 167 SkASSERT(begin <= first->fEnd); in pop_front() 169 if (begin < fFrontBlock->fEnd) { in pop_front() 174 first->fBegin = first->fEnd = nullptr; // mark as empty in pop_front() 192 if (last->fEnd == nullptr) { // we were marked empty from before in pop_back() 200 char* end = last->fEnd - fElemSize; in pop_back() [all …]
|
D | SkArenaAlloc.cpp | 22 , fEnd {block + ToU32(size)} 28 fEnd = fCursor = fDtorCursor = nullptr; 136 fEnd = fCursor + allocationSize; in ensureSpace() 152 if ((ptrdiff_t)totalSize > fEnd - objStart) { in allocObjectWithFooter() 157 AssertRelease((ptrdiff_t)totalSize <= fEnd - objStart); in allocObjectWithFooter()
|
/external/skia/src/core/ |
D | SkDeque.cpp | 15 char* fEnd; // end of used section in this chunk member 23 fBegin = fEnd = nullptr; in init() 82 first->fEnd = first->fStop; in push_front() 125 end = last->fEnd + fElemSize; in push_back() 136 last->fEnd = end; in push_back() 167 SkASSERT(begin <= first->fEnd); in pop_front() 169 if (begin < fFrontBlock->fEnd) { in pop_front() 174 first->fBegin = first->fEnd = nullptr; // mark as empty in pop_front() 192 if (last->fEnd == nullptr) { // we were marked empty from before in pop_back() 200 char* end = last->fEnd - fElemSize; in pop_back() [all …]
|
D | SkEnumerate.h | 61 , fEnd{std::end(fCollection)} { } 65 fEnd = that.fEnd; 69 constexpr Iterator end() const { return Iterator{fBeginIndex + this->ssize(), fEnd}; } 70 constexpr bool empty() const { return fBegin == fEnd; } 71 constexpr size_t size() const { return std::distance(fBegin, fEnd); } 72 constexpr ptrdiff_t ssize() const { return std::distance(fBegin, fEnd); } 76 return SkEnumerate{fBeginIndex, fBegin, std::prev(fEnd, deltaEnd)}; 81 return SkEnumerate{fBeginIndex + deltaBegin, std::next(fBegin, deltaBegin), fEnd}; 94 , fEnd(end) {} 99 Iter fEnd;
|
D | SkArenaAlloc.cpp | 17 , fEnd {block + ToU32(size)} 21 fEnd = fCursor = fDtorCursor = nullptr; 96 fEnd = fCursor + allocationSize; in ensureSpace() 118 assert(fEnd); in allocObjectWithFooter() 121 if ((ptrdiff_t)totalSize > fEnd - objStart) { in allocObjectWithFooter() 126 AssertRelease((ptrdiff_t)totalSize <= fEnd - objStart); in allocObjectWithFooter()
|
/external/skia/tests/ |
D | GrBlockAllocatorTest.cpp | 104 REPORTER_ASSERT(r, br.fEnd - br.fAlignedOffset >= size); in DEF_TEST() 114 reinterpret_cast<uintptr_t>(prevBR->fBlock->ptr(prevBR->fEnd - 1)); in DEF_TEST() 120 std::memset(br.fBlock->ptr(br.fAlignedOffset), 0xFF, br.fEnd - br.fAlignedOffset); in DEF_TEST() 180 REPORTER_ASSERT(r, p.fBlock->resize(p.fStart, p.fEnd, 16)); in DEF_TEST() 181 p.fEnd += 16; in DEF_TEST() 183 std::memset(p.fBlock->ptr(p.fAlignedOffset), 0x11, p.fEnd - p.fAlignedOffset); in DEF_TEST() 190 REPORTER_ASSERT(r, !p.fBlock->resize(p.fStart, p.fEnd, 48)); in DEF_TEST() 193 REPORTER_ASSERT(r, p.fBlock->release(pNext.fStart, pNext.fEnd)); in DEF_TEST() 195 REPORTER_ASSERT(r, p.fBlock->resize(p.fStart, p.fEnd, fillBlock)); in DEF_TEST() 196 p.fEnd += fillBlock; in DEF_TEST() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | string_segment.cpp | 22 : fStr(str), fStart(0), fEnd(str.length()), in StringSegment() 42 fEnd = fStart + length; in setLength() 46 fEnd = fStr.length(); in resetLength() 50 return fEnd - fStart; in length() 62 return UnicodeString(fStr.getBuffer() + fStart, fEnd - fStart); in toUnicodeString() 67 return UnicodeString(FALSE, fStr.getBuffer() + fStart, fEnd - fStart); in toTempUnicodeString() 72 if (U16_IS_LEAD(lead) && fStart + 1 < fEnd) { in getCodePoint()
|
/external/icu/icu4c/source/test/intltest/ |
D | sfwdchit.cpp | 35 fEnd = fStart+fLen; 56 fEnd = fStart+fLen; in SimpleFwdCharIterator() 62 fEnd = fStart + fLen; in SimpleFwdCharIterator() 109 if(fCurrent == fEnd) { in nextPostInc() 121 return fCurrent < fEnd; in hasNext()
|
/external/skqp/src/gpu/ |
D | GrResourceAllocator.h | 113 , fEnd(end) in Interval() 130 fEnd = end; in resetTo() 146 unsigned int end() const { return fEnd; } in end() 153 if (newEnd > fEnd) { in extendEnd() 154 fEnd = newEnd; in extendEnd() 156 SkDebugf("intvl %d: extending from %d to %d\n", fUniqueID, fEnd, newEnd); in extendEnd() 176 unsigned int fEnd; variable
|
/external/skqp/src/pathops/ |
D | SkOpAngle.cpp | 77 lh->fStart->t(), lh->fEnd->t(), in after() 78 segment()->debugID(), debugID(), fSectorStart, fSectorEnd, fStart->t(), fEnd->t(), in after() 80 rh->fStart->t(), rh->fEnd->t()); in after() 97 lh->fStart->t(), lh->fEnd->t(), in after() 98 segment()->debugID(), debugID(), fSectorStart, fSectorEnd, fStart->t(), fEnd->t(), in after() 100 rh->fStart->t(), rh->fEnd->t()); in after() 357 if (!fEnd->contains(rh->fEnd)) { in checkParallel() 391 bool stepUp = fStart->t() < fEnd->t(); in computeSector() 392 SkOpSpanBase* checkEnd = fEnd; in computeSector() 418 SkOpSpanBase* computedEnd = stepUp ? checkEnd ? checkEnd->prev() : fEnd->segment()->head() in computeSector() [all …]
|
/external/skia/src/pathops/ |
D | SkOpAngle.cpp | 77 lh->fStart->t(), lh->fEnd->t(), in after() 78 segment()->debugID(), debugID(), fSectorStart, fSectorEnd, fStart->t(), fEnd->t(), in after() 80 rh->fStart->t(), rh->fEnd->t()); in after() 97 lh->fStart->t(), lh->fEnd->t(), in after() 98 segment()->debugID(), debugID(), fSectorStart, fSectorEnd, fStart->t(), fEnd->t(), in after() 100 rh->fStart->t(), rh->fEnd->t()); in after() 357 if (!fEnd->contains(rh->fEnd)) { in checkParallel() 391 bool stepUp = fStart->t() < fEnd->t(); in computeSector() 392 SkOpSpanBase* checkEnd = fEnd; in computeSector() 418 SkOpSpanBase* computedEnd = stepUp ? checkEnd ? checkEnd->prev() : fEnd->segment()->head() in computeSector() [all …]
|
/external/skia/experimental/sktext/src/ |
D | Processor.cpp | 136 this->adjustLeft(&block.fRange.fEnd); in sortDecorBlocks() 142 start = block.fRange.fEnd; in sortDecorBlocks() 145 if (defaultBlock.fRange.fEnd <= block.fRange.fEnd) { in sortDecorBlocks() 225 textRange.fEnd = textIndex; in iterateByVisualOrder() 226 glyphRange.fEnd = glyphIndex; in iterateByVisualOrder() 269 if (run.leftToRight() && textIndex < currentBlock->fRange.fEnd) { in iterateByVisualOrder() 276 textRange.fEnd = textIndex; in iterateByVisualOrder() 280 glyphRange.fEnd = glyphIndex; in iterateByVisualOrder() 286 textRange.fEnd = textIndex; in iterateByVisualOrder() 294 textRange.fEnd = run.fClusters[endGlyph]; in iterateByVisualOrder() [all …]
|
D | TextRun.cpp | 38 SkASSERT(glyphRange.fStart <= glyphRange.fEnd && glyphRange.fEnd < fPositions.size()); in calculateWidth() 39 return fPositions[glyphRange.fEnd].fX - fPositions[glyphRange.fStart].fX; in calculateWidth()
|
/external/skia/src/gpu/ |
D | GrResourceAllocator.h | 189 , fEnd(end) { in Interval() 202 unsigned int end() const { return fEnd; } in end() 215 if (newEnd > fEnd) { in extendEnd() 216 fEnd = newEnd; in extendEnd() 218 SkDebugf("intvl %d: extending from %d to %d\n", fUniqueID, fEnd, newEnd); in extendEnd() 228 unsigned int fEnd; variable
|
/external/skqp/src/gpu/gradients/ |
D | GrSingleIntervalGradientColorizer.cpp | 72 if (fEnd != that.fEnd) return false; in onIsEqual() 79 , fEnd(src.fEnd) {} in GrSingleIntervalGradientColorizer()
|
D | GrSingleIntervalGradientColorizer.h | 19 const SkPMColor4f& end() const { return fEnd; } in end() 32 , fEnd(end) {} in GrSingleIntervalGradientColorizer() 38 SkPMColor4f fEnd; variable
|
/external/skqp/src/pdf/ |
D | SkPDFMakeToUnicodeCmap.cpp | 69 SkGlyphID fEnd; member 117 write_glyph(cmap, multiByte, bfrange[i + j].fEnd); in append_bfrange_section() 178 i == currentRangeEntry.fEnd + 1 && in SkPDFAppendCmapSections() 184 if (currentRangeEntry.fEnd > currentRangeEntry.fStart) { in SkPDFAppendCmapSections() 193 currentRangeEntry.fEnd = i; in SkPDFAppendCmapSections()
|
/external/skia/src/pdf/ |
D | SkPDFMakeToUnicodeCmap.cpp | 69 SkGlyphID fEnd; member 117 write_glyph(cmap, multiByte, bfrange[i + j].fEnd); in append_bfrange_section() 178 i == currentRangeEntry.fEnd + 1 && in SkPDFAppendCmapSections() 184 if (currentRangeEntry.fEnd > currentRangeEntry.fStart) { in SkPDFAppendCmapSections() 193 currentRangeEntry.fEnd = i; in SkPDFAppendCmapSections()
|
/external/skqp/src/shaders/gradients/ |
D | SkLinearGradient.cpp | 33 , fEnd(pts[1]) { in SkLinearGradient() 52 buffer.writePoint(fEnd); in flatten() 84 SkPoint pts[2] = { fStart, fEnd }; in onMakeColorSpace() 93 info->fPoint[1] = fEnd; in asAGradient()
|
/external/skia/modules/skshaper/src/ |
D | SkShaper.cpp | 95 : fCurrent(utf8), fBegin(utf8), fEnd(fCurrent + utf8Bytes) in FontMgrRunIterator() 114 SkASSERT(fCurrent < fEnd); in consume() 116 SkUnichar u = utf8_next(&fCurrent, fEnd); in consume() 137 while (fCurrent < fEnd) { in consume() 139 u = utf8_next(&fCurrent, fEnd); in consume() 164 return fCurrent == fEnd; in atEnd() 174 char const * const fEnd; member in FontMgrRunIterator
|