Searched refs:SkRange (Results 1 – 9 of 9) sorted by relevance
/third_party/skia/modules/skparagraph/include/ |
D | DartTypes.h | 98 template <typename T> struct SkRange { struct 99 SkRange() : start(), end() {} in SkRange() argument 100 SkRange(T s, T e) : start(s), end(e) {} in SkRange() function 106 bool operator==(const SkRange<T>& other) const { argument 117 bool contains(SkRange<size_t> other) const { in contains() argument 121 bool intersects(SkRange<size_t> other) const { in intersects() argument 125 SkRange<size_t> intersection(SkRange<size_t> other) const { in intersection() argument 126 return SkRange<size_t>(std::max(start, other.start), std::min(end, other.end)); in intersection() 134 const SkRange<size_t> EMPTY_RANGE = SkRange<size_t>(EMPTY_INDEX, EMPTY_INDEX); argument
|
D | TextStyle.h | 352 typedef SkRange<size_t> TextRange; 353 const SkRange<size_t> EMPTY_TEXT = EMPTY_RANGE; 371 typedef SkRange<size_t> BlockRange; 373 const SkRange<size_t> EMPTY_BLOCKS = EMPTY_RANGE;
|
D | Paragraph.h | 70 virtual SkRange<size_t> getWordBoundary(unsigned offset) = 0;
|
/third_party/skia/modules/skparagraph/src/ |
D | Run.h | 36 typedef SkRange<size_t> ClusterRange; 38 const SkRange<size_t> EMPTY_CLUSTERS = EMPTY_RANGE; 41 typedef SkRange<GraphemeIndex> GraphemeRange; 44 typedef SkRange<GlyphIndex> GlyphRange;
|
D | OneLineShaper.cpp | 681 SkRange<size_t> featureRange(feature.start, feature.end); in shape() 683 … SkRange<size_t> adjustedRange = unresolvedRange.intersection(featureRange); in shape()
|
D | ParagraphImpl.h | 123 SkRange<size_t> getWordBoundary(unsigned offset) override;
|
D | ParagraphImpl.cpp | 1079 SkRange<size_t> ParagraphImpl::getWordBoundary(unsigned offset) { in getWordBoundary()
|
/third_party/skia/modules/canvaskit/ |
D | paragraph_bindings.cpp | 629 value_object<para::SkRange<size_t>>("URange") in EMSCRIPTEN_BINDINGS() 630 .field("start", ¶::SkRange<size_t>::start) in EMSCRIPTEN_BINDINGS() 631 .field("end", ¶::SkRange<size_t>::end); in EMSCRIPTEN_BINDINGS()
|
/third_party/skia/modules/skparagraph/tests/ |
D | SkParagraphTest.cpp | 3608 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(0) == SkRange<size_t>(0, 5)); in UNIX_ONLY_TEST() 3609 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(1) == SkRange<size_t>(0, 5)); in UNIX_ONLY_TEST() 3610 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(2) == SkRange<size_t>(0, 5)); in UNIX_ONLY_TEST() 3611 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(3) == SkRange<size_t>(0, 5)); in UNIX_ONLY_TEST() 3612 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(4) == SkRange<size_t>(0, 5)); in UNIX_ONLY_TEST() 3616 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(5) == SkRange<size_t>(5, 7)); in UNIX_ONLY_TEST() 3620 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(6) == SkRange<size_t>(5, 7)); in UNIX_ONLY_TEST() 3624 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(7) == SkRange<size_t>(7, 12)); in UNIX_ONLY_TEST() 3625 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(8) == SkRange<size_t>(7, 12)); in UNIX_ONLY_TEST() 3626 REPORTER_ASSERT(reporter, paragraph->getWordBoundary(9) == SkRange<size_t>(7, 12)); in UNIX_ONLY_TEST() [all …]
|