Home
last modified time | relevance | path

Searched refs:SkUnicode (Results 1 – 25 of 26) sorted by relevance

12

/third_party/skia/experimental/sktext/samples/
DText.cpp42 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/
DSkUnicode_icu.cpp69 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/
DParagraphBuilderImpl.h23 std::unique_ptr<SkUnicode> unicode);
66 std::unique_ptr<SkUnicode> unicode);
82 std::unique_ptr<SkUnicode> fUnicode;
DParagraphBuilderImpl.cpp26 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()
DParagraphImpl.h105 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;
DParagraphImpl.cpp69 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()
DParagraphCache.cpp59 std::vector<SkUnicode::BidiRegion> fBidiRegions;
DOneLineShaper.cpp565 SkUnicode::BidiRegion& bidiRegion = fParagraph->fBidiRegions[bidiIndex]; in iterateThroughShapingRegions()
/third_party/skia/experimental/sktext/include/
DText.h39 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);
DInterface.h35 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/
DShapedText.cpp46 …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()
DUnicodeText.cpp59 …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()
DFontResolvedText.cpp46 …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()
DSelectableText.cpp99 …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()
DWrappedText.cpp97 …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/
DSkUnicode.h79 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/
DSkShaper.h42 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/
DTexts.h33 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/
DText.cpp9 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()
DPaint.cpp81 auto unicode = SkUnicode::Make(); in layout()
/third_party/skia/modules/skunicode/
Dskunicode.gni10 skia_unicode_public = [ "$_include/SkUnicode.h" ]
/third_party/skia/modules/skshaper/src/
DSkShaper_harfbuzz.cpp647 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 …]
DSkShaper.cpp48 auto unicode = SkUnicode::Make(); in MakeBiDiRunIterator()
67 auto unicode = SkUnicode::Make(); in MakeScriptRunIterator()
/third_party/skia/
Dpublic.bzl942 # Stubs, pending SkUnicode fission
944 "modules/skunicode/include/SkUnicode.h",
951 "modules/skunicode/include/SkUnicode.h",
/third_party/skia/modules/skottie/src/text/
DSkottieShaper.cpp461 if (auto skuni = SkUnicode::Make()) { in AdjustedText()

12