/third_party/skia/experimental/sktext/samples/ |
D | Text.cpp | 42 TextSample_Align_Dir() : fUnicode(SkUnicode::Make()) { } in TextSample_Align_Dir() 121 std::unique_ptr<SkUnicode> fUnicode; 139 std::unique_ptr<SkUnicode> fUnicode; 166 std::unique_ptr<SkUnicode> fUnicode; 185 std::unique_ptr<SkUnicode> fUnicode;
|
/third_party/skia/modules/skunicode/src/ |
D | SkUnicode_icu.cpp | 69 static UBreakIteratorType convertType(SkUnicode::BreakType type) { in convertType() 71 case SkUnicode::BreakType::kLines: return UBRK_LINE; in convertType() 72 case SkUnicode::BreakType::kGraphemes: return UBRK_CHARACTER; in convertType() 73 case SkUnicode::BreakType::kWords: return UBRK_WORD; in convertType() 223 SkTHashMap<SkUnicode::BreakType, ICUBreakIterator> fBreakCache; 232 ICUBreakIterator makeBreakIterator(SkUnicode::BreakType type) { in makeBreakIterator() 278 class SkUnicode_icu : public SkUnicode { 392 auto status = type == SkUnicode::BreakType::kLines in extractPositions() 399 if (type == SkUnicode::BreakType::kLines) { in extractPositions() 525 std::unique_ptr<SkUnicode> SkUnicode::Make() { in Make()
|
/third_party/skia/modules/skparagraph/src/ |
D | ParagraphBuilderImpl.h | 23 std::unique_ptr<SkUnicode> unicode); 66 std::unique_ptr<SkUnicode> unicode); 82 std::unique_ptr<SkUnicode> fUnicode;
|
D | ParagraphBuilderImpl.cpp | 26 auto unicode = SkUnicode::Make(); in make() 34 … ParagraphStyle& style, sk_sp<FontCollection> fontCollection, std::unique_ptr<SkUnicode> unicode) { in make() 42 …st ParagraphStyle& style, sk_sp<FontCollection> fontCollection, std::unique_ptr<SkUnicode> unicode) in ParagraphBuilderImpl() 53 : ParagraphBuilderImpl(style, fontCollection, SkUnicode::Make()) in ParagraphBuilderImpl()
|
D | ParagraphImpl.h | 105 std::unique_ptr<SkUnicode> unicode); 112 std::unique_ptr<SkUnicode> unicode); 226 SkUnicode* getUnicode() { return fUnicode.get(); } 257 std::vector<SkUnicode::BidiRegion> fBidiRegions; 276 std::unique_ptr<SkUnicode> fUnicode;
|
D | ParagraphImpl.cpp | 69 std::unique_ptr<SkUnicode> unicode) in ParagraphImpl() 90 std::unique_ptr<SkUnicode> unicode) in ParagraphImpl() 262 ? SkUnicode::TextDirection::kLTR in computeCodeUnitProperties() 263 : SkUnicode::TextDirection::kRTL; in computeCodeUnitProperties() 284 std::vector<SkUnicode::LineBreakBefore> lineBreaks; in computeCodeUnitProperties() 289 …fCodeUnitProperties[lineBreak.pos] |= lineBreak.breakType == SkUnicode::LineBreakType::kHardLineBr… in computeCodeUnitProperties() 295 std::vector<SkUnicode::Position> graphemes; in computeCodeUnitProperties()
|
D | ParagraphCache.cpp | 59 std::vector<SkUnicode::BidiRegion> fBidiRegions;
|
D | OneLineShaper.cpp | 565 SkUnicode::BidiRegion& bidiRegion = fParagraph->fBidiRegions[bidiIndex]; in iterateThroughShapingRegions()
|
/third_party/skia/experimental/sktext/include/ |
D | Text.h | 39 UnicodeText(std::unique_ptr<SkUnicode> unicode, SkSpan<uint16_t> utf16); 40 UnicodeText(std::unique_ptr<SkUnicode> unicode, const SkString& utf8); 54 SkUnicode* getUnicode() const { return fUnicode.get(); } in getUnicode() 86 std::unique_ptr<SkUnicode> fUnicode; 154 …void addLine(WrappedText* wrappedText, SkUnicode* unicode, Stretch& stretch, Stretch& spaces, bool… 156 SkTArray<int32_t> getVisualOrder(SkUnicode* unicode, RunIndex start, RunIndex end);
|
D | Interface.h | 35 UnicodeText(std::unique_ptr<SkUnicode> unicode, SkSpan<uint16_t> utf16); 36 UnicodeText(std::unique_ptr<SkUnicode> unicode, const SkString& utf8); 43 SkUnicode* getUnicode() const;
|
/third_party/skia/experimental/sktext/tests/ |
D | ShapedText.cpp | 46 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() 65 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST()
|
D | UnicodeText.cpp | 59 …UnicodeText unicodeText16(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size(… in UNIX_ONLY_TEST() 60 UnicodeText unicodeText8(SkUnicode::Make(), utf8); in UNIX_ONLY_TEST()
|
D | FontResolvedText.cpp | 46 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() 66 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST()
|
D | SelectableText.cpp | 99 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() 147 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() 189 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() 230 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() 271 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST()
|
D | WrappedText.cpp | 97 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST() 146 …UnicodeText unicodeText(SkUnicode::Make(), SkSpan<uint16_t>((uint16_t*)utf16.data(), utf16.size())… in UNIX_ONLY_TEST()
|
/third_party/skia/modules/skunicode/include/ |
D | SkUnicode.h | 79 class SKUNICODE_API SkUnicode { 113 virtual ~SkUnicode() = default; 229 …void forEachBreak(const char16_t utf16[], int utf16Units, SkUnicode::BreakType type, Callback&& ca… in forEachBreak() 241 static std::unique_ptr<SkUnicode> Make();
|
/third_party/skia/modules/skshaper/include/ |
D | SkShaper.h | 42 class SkUnicode; variable 139 …MakeSkUnicodeBidiRunIterator(SkUnicode* unicode, const char* utf8, size_t utf8Bytes, uint8_t bidiL… 156 MakeSkUnicodeHbScriptRunIterator(SkUnicode* unicode, const char* utf8, size_t utf8Bytes);
|
/third_party/skia/experimental/sktext/editor/ |
D | Texts.h | 33 auto unicode = SkUnicode::Make(); in StaticText() 71 auto unicode = SkUnicode::Make(); in DynamicText() 97 auto unicode = SkUnicode::Make(); in rebuild()
|
/third_party/skia/experimental/sktext/src/ |
D | Text.cpp | 9 UnicodeText::UnicodeText(std::unique_ptr<SkUnicode> unicode, SkSpan<uint16_t> utf16) in UnicodeText() 15 UnicodeText::UnicodeText(std::unique_ptr<SkUnicode> unicode, const SkString& utf8) in UnicodeText() 46 …this->fUnicode->forEachBreak((char16_t*)utf16.data(), utf16.size(), SkUnicode::BreakType::kGraphem… in initialize() 51 … this->fUnicode->forEachBreak((char16_t*)utf16.data(), utf16.size(), SkUnicode::BreakType::kLines, in initialize() 53 … if (status == (SkBreakIterator::Status)SkUnicode::LineBreakType::kHardLineBreak) { in initialize() 230 auto text8 = SkUnicode::convertUtf16ToUtf8(std::u16string(text16.data(), text16.size())); in shape() 435 SkTArray<int32_t> ShapedText::getVisualOrder(SkUnicode* unicode, RunIndex startRun, RunIndex endRun… in getVisualOrder() 442 SkTArray<SkUnicode::BidiLevel> runLevels; in getVisualOrder() 454 void ShapedText::addLine(WrappedText* wrappedText, SkUnicode* unicode, Stretch& stretch, Stretch& s… in addLine()
|
D | Paint.cpp | 81 auto unicode = SkUnicode::Make(); in layout()
|
/third_party/skia/modules/skunicode/ |
D | skunicode.gni | 10 skia_unicode_public = [ "$_include/SkUnicode.h" ]
|
/third_party/skia/modules/skshaper/src/ |
D | SkShaper_harfbuzz.cpp | 647 ShaperHarfBuzz(std::unique_ptr<SkUnicode>, 654 std::unique_ptr<SkUnicode> fUnicode; 757 auto unicode = SkUnicode::Make(); in MakeHarfBuzz() 761 auto lineIter = unicode->makeBreakIterator("th", SkUnicode::BreakType::kLines); in MakeHarfBuzz() 765 auto graphIter = unicode->makeBreakIterator("th", SkUnicode::BreakType::kGraphemes); in MakeHarfBuzz() 779 ShaperHarfBuzz::ShaperHarfBuzz(std::unique_ptr<SkUnicode> unicode, in ShaperHarfBuzz() 1441 auto unicode = SkUnicode::Make(); in MakeIcuBiDiRunIterator() 1452 SkShaper::MakeSkUnicodeBidiRunIterator(SkUnicode* unicode, const char* utf8, size_t utf8Bytes, uint… in MakeSkUnicodeBidiRunIterator() 1481 auto unicode = SkUnicode::Make(); in MakeHbIcuScriptRunIterator() 1489 SkShaper::MakeSkUnicodeHbScriptRunIterator(SkUnicode* unicode, const char* utf8, size_t utf8Bytes) { in MakeSkUnicodeHbScriptRunIterator() [all …]
|
D | SkShaper.cpp | 48 auto unicode = SkUnicode::Make(); in MakeBiDiRunIterator() 67 auto unicode = SkUnicode::Make(); in MakeScriptRunIterator()
|
/third_party/skia/ |
D | public.bzl | 942 # Stubs, pending SkUnicode fission 944 "modules/skunicode/include/SkUnicode.h", 951 "modules/skunicode/include/SkUnicode.h",
|
/third_party/skia/modules/skottie/src/text/ |
D | SkottieShaper.cpp | 461 if (auto skuni = SkUnicode::Make()) { in AdjustedText()
|