Home
last modified time | relevance | path

Searched refs:SkShaper (Results 1 – 25 of 43) sorted by relevance

12

/external/skia/samplecode/
DSampleTextBox.cpp27 typedef std::unique_ptr<SkShaper> (*ShaperFactory)();
59 SkShaper::PurgeCaches(); in drawTest()
68 std::unique_ptr<SkShaper::BiDiRunIterator> bidi( in drawTest()
69 SkShaper::MakeBiDiRunIterator(utf8, utf8Bytes, 0xfe)); in drawTest()
74 std::unique_ptr<SkShaper::LanguageRunIterator> language( in drawTest()
75 SkShaper::MakeStdLanguageRunIterator(utf8, utf8Bytes)); in drawTest()
81 std::unique_ptr<SkShaper::ScriptRunIterator> script( in drawTest()
82 SkShaper::MakeScriptRunIterator(utf8, utf8Bytes, undeterminedScript)); in drawTest()
87 std::unique_ptr<SkShaper::FontRunIterator> font( in drawTest()
88 SkShaper::MakeFontMgrRunIterator(utf8, utf8Bytes, srcFont, SkFontMgr::RefDefault(), in drawTest()
[all …]
/external/skia/modules/skshaper/src/
DSkShaper.cpp29 std::unique_ptr<SkShaper> SkShaper::Make(sk_sp<SkFontMgr> fontmgr) { in Make()
31 std::unique_ptr<SkShaper> shaper = SkShaper::MakeShaperDrivenWrapper(std::move(fontmgr)); in Make()
36 return SkShaper::MakePrimitive(); in Make()
39 void SkShaper::PurgeCaches() { in PurgeCaches()
45 std::unique_ptr<SkShaper::BiDiRunIterator>
46 SkShaper::MakeBiDiRunIterator(const char* utf8, size_t utf8Bytes, uint8_t bidiLevel) { in MakeBiDiRunIterator()
52 std::unique_ptr<SkShaper::BiDiRunIterator> bidi = in MakeBiDiRunIterator()
53 SkShaper::MakeSkUnicodeBidiRunIterator(unicode.get(), in MakeBiDiRunIterator()
61 return std::make_unique<SkShaper::TrivialBiDiRunIterator>(bidiLevel, utf8Bytes); in MakeBiDiRunIterator()
64 std::unique_ptr<SkShaper::ScriptRunIterator>
[all …]
DSkShaper_harfbuzz.cpp336 class SkUnicodeBidiRunIterator final : public SkShaper::BiDiRunIterator {
382 class SkUnicodeHbScriptRunIterator final: public SkShaper::ScriptRunIterator {
439 void insert(SkShaper::RunIterator* runIterator, int priority) { in insert()
444 const SkShaper::RunIterator* leastRun = fEntries.peek().runIterator; in advanceRuns()
450 SkShaper::RunIterator* currentRun = nullptr; in advanceRuns()
478 SkShaper::RunIterator* runIterator;
501 … ShapedRun(SkShaper::RunHandler::Range utf8Range, const SkFont& font, SkBidiIterator::Level level, in ShapedRun()
507 SkShaper::RunHandler::Range fUtf8Range;
523 void append(SkShaper::RunHandler* handler, const SkShaper::RunHandler::RunInfo& runInfo, in append()
552 void emit(const ShapedLine& line, SkShaper::RunHandler* handler) { in emit()
[all …]
DSkShaper_primitive.cpp15 class SkShaperPrimitive : public SkShaper {
43 std::unique_ptr<SkShaper> SkShaper::MakePrimitive() { in MakePrimitive()
DSkShaper_coretext.cpp30 class SkShaper_CoreText : public SkShaper {
58 std::unique_ptr<SkShaper> SkShaper::MakeCoreText() { in MakeCoreText()
235 std::vector<SkShaper::RunHandler::RunInfo> infos; in shape()
/external/skqp/modules/skshaper/include/
DSkShaper.h25 class SkShaper {
27 SkShaper(sk_sp<SkTypeface> face);
28 ~SkShaper();
63 SkShaper(const SkShaper&) = delete;
64 SkShaper& operator=(const SkShaper&) = delete;
73 class SkTextBlobBuilderRunHandler final : public SkShaper::RunHandler {
77 SkShaper::RunHandler::Buffer newRunBuffer(const RunInfo&, const SkFont&, int, int) override;
/external/skia/modules/skshaper/include/
DSkShaper.h44 class SKSHAPER_API SkShaper {
46 static std::unique_ptr<SkShaper> MakePrimitive();
48 static std::unique_ptr<SkShaper> MakeShaperDrivenWrapper(sk_sp<SkFontMgr> = nullptr);
49 static std::unique_ptr<SkShaper> MakeShapeThenWrap(sk_sp<SkFontMgr> = nullptr);
50 static std::unique_ptr<SkShaper> MakeShapeDontWrapOrReorder(sk_sp<SkFontMgr> = nullptr);
54 static std::unique_ptr<SkShaper> MakeCoreText();
57 static std::unique_ptr<SkShaper> Make(sk_sp<SkFontMgr> = nullptr);
60 SkShaper();
61 virtual ~SkShaper();
117 static std::unique_ptr<SkShaper::FontRunIterator>
[all …]
/external/skia/tests/
DShaperTest.cpp22 struct RunHandler final : public SkShaper::RunHandler {
28 SkShaper::RunHandler::Range fRange;
35 void runInfo(const SkShaper::RunHandler::RunInfo& info) override {} in runInfo()
37 SkShaper::RunHandler::Buffer runBuffer(const SkShaper::RunHandler::RunInfo& info) override { in runBuffer()
43 return SkShaper::RunHandler::Buffer{fGlyphs.get(), in runBuffer()
64 auto shaper = SkShaper::Make(); in shaper_test()
76 auto fontIterator = SkShaper::TrivialFontRunIterator(font, data->size()); in shaper_test()
77 auto bidiIterator = SkShaper::TrivialBiDiRunIterator(0, data->size()); in shaper_test()
78 auto scriptIterator = SkShaper::TrivialScriptRunIterator(latn, data->size()); in shaper_test()
79 auto languageIterator = SkShaper::TrivialLanguageRunIterator("en-US", data->size()); in shaper_test()
DSkShaperJSONWriterTest.cpp127 std::unique_ptr<SkShaper> shaper = SkShaper::Make();
/external/skia/experimental/sktext/src/
DShaper.cpp18 SkShaper::TrivialFontRunIterator fontIter(font, text.size()); in process()
19 SkShaper::TrivialLanguageRunIterator langIter(text.c_str(), text.size()); in process()
20 std::unique_ptr<SkShaper::BiDiRunIterator> bidiIter( in process()
21 SkShaper::MakeSkUnicodeBidiRunIterator( in process()
23 std::unique_ptr<SkShaper::ScriptRunIterator> scriptIter( in process()
24SkShaper::MakeSkUnicodeHbScriptRunIterator(fProcessor->fUnicode.get(), text.c_str(), text.size())); in process()
25 auto shaper = SkShaper::MakeShapeDontWrapOrReorder(); in process()
DTextRun.h12 TextRun(const SkShaper::RunHandler::RunInfo& info);
18 SkShaper::RunHandler::Buffer newRunBuffer();
33 SkShaper::RunHandler::Range fUtf8Range;
DTextRun.cpp10 TextRun::TextRun(const SkShaper::RunHandler::RunInfo& info) in TextRun()
33 SkShaper::RunHandler::Buffer TextRun::newRunBuffer() { in newRunBuffer()
/external/skqp/modules/skshaper/src/
DSkShaper_primitive.cpp14 struct SkShaper::Impl {
18 SkShaper::SkShaper(sk_sp<SkTypeface> tf) : fImpl(new Impl) { in SkShaper() function in SkShaper
22 SkShaper::~SkShaper() {} in ~SkShaper()
24 bool SkShaper::good() const { return true; } in good()
34 SkPoint SkShaper::shape(RunHandler* handler, in shape()
DSkShaper_harfbuzz.cpp428 static void append(SkShaper::RunHandler* handler, const SkShaper::RunHandler::RunInfo& runInfo, in append()
503 struct SkShaper::Impl {
510 SkShaper::SkShaper(sk_sp<SkTypeface> tf) : fImpl(new Impl) { in SkShaper() function in SkShaper
530 SkShaper::~SkShaper() {} in ~SkShaper()
532 bool SkShaper::good() const { in good()
539 SkPoint SkShaper::shape(RunHandler* handler, in shape()
DSkShaper.cpp12 SkShaper::RunHandler::Buffer SkTextBlobBuilderRunHandler::newRunBuffer(const RunInfo&, in newRunBuffer()
/external/skqp/modules/skshaper/
Dskshaper.gni10 skia_shaper_public = [ "$_include/SkShaper.h" ]
13 "$_src/SkShaper.cpp",
18 "$_src/SkShaper.cpp",
/external/skia/modules/skplaintexteditor/src/
Dshape.cpp27 class RunHandler final : public SkShaper::RunHandler {
50 SkShaper::RunHandler::Buffer runBuffer(const RunInfo&) override;
100 void RunHandler::runInfo(const SkShaper::RunHandler::RunInfo& info) { in runInfo()
112 SkShaper::RunHandler::Buffer RunHandler::runBuffer(const RunInfo& info) { in runBuffer()
270 std::unique_ptr<SkShaper> shaper = SkShaper::Make(); in Shape()
/external/skia/modules/skshaper/
Dskshaper.gni10 skia_shaper_public = [ "$_include/SkShaper.h" ]
13 "$_src/SkShaper.cpp",
/external/skia/modules/skplaintexteditor/
DREADME.md3 This is an experimental Editor layer that abstracts out SkShaper text layeout
18 | | |SkShaper |
/external/skia/modules/skparagraph/src/
DOneLineShaper.cpp199 const SkShaper::RunHandler::RunInfo info = { in finish()
204 SkShaper::RunHandler::Range(text.start - run->fClusterStart, text.width()) in finish()
429 SkTArray<SkShaper::Feature> features; in iterateThroughFontStyles()
437 SkShaper::Feature feature = { in iterateThroughFontStyles()
592 const SkShaper::RunHandler::RunInfo runInfo = { in iterateThroughShapingRegions()
597 SkShaper::RunHandler::Range(placeholder.fRange.start, placeholder.fRange.width()) in iterateThroughShapingRegions()
626 auto shaper = SkShaper::MakeShapeDontWrapOrReorder(); in shape()
634 (Block block, SkTArray<SkShaper::Feature> features) { in shape()
677 SkShaper::TrivialFontRunIterator fontIter(font, unresolvedText.size()); in shape()
680SkShaper::TrivialBiDiRunIterator bidiIter(defaultBidiLevel, unresolvedText.size()); in shape()
[all …]
DOneLineShaper.h16 class OneLineShaper : public SkShaper::RunHandler {
59 using ShapeSingleFontVisitor = std::function<void(Block, SkTArray<SkShaper::Feature>)>;
/external/skia/bench/
DShaperBench.cpp16 std::unique_ptr<SkShaper> fShaper;
23 fShaper = SkShaper::Make(); in onDelayedSetup()
/external/skia/src/utils/
DSkShaperJSONWriter.cpp23 void SkShaperJSONWriter::runInfo(const SkShaper::RunHandler::RunInfo& info) { } in runInfo()
27 SkShaper::RunHandler::Buffer
28 SkShaperJSONWriter::runBuffer(const SkShaper::RunHandler::RunInfo& info) { in runBuffer()
68 void SkShaperJSONWriter::commitRunBuffer(const SkShaper::RunHandler::RunInfo& info) { in commitRunBuffer()
/external/skia/tools/
Dusing_skia_and_harfbuzz.cpp141 void WriteLine(const SkShaper& shaper, const char *text, size_t textBytes) { in WriteLine()
211 std::unique_ptr<SkShaper> shaper = SkShaper::Make(); in main()
/external/skia/modules/svg/src/
DSkSVGTextPriv.h33 class SkSVGTextContext final : SkShaper::RunHandler {
186 const std::unique_ptr<SkShaper> fShaper;

12