Home
last modified time | relevance | path

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

123

/third_party/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 …]
/third_party/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.cpp345 class SkUnicodeBidiRunIterator final : public SkShaper::BiDiRunIterator {
391 class SkUnicodeHbScriptRunIterator final: public SkShaper::ScriptRunIterator {
442 void insert(SkShaper::RunIterator* runIterator, int priority) { in insert()
447 const SkShaper::RunIterator* leastRun = fEntries.peek().runIterator; in advanceRuns()
453 SkShaper::RunIterator* currentRun = nullptr; in advanceRuns()
481 SkShaper::RunIterator* runIterator;
504 … ShapedRun(SkShaper::RunHandler::Range utf8Range, const SkFont& font, SkBidiIterator::Level level, in ShapedRun()
510 SkShaper::RunHandler::Range fUtf8Range;
526 void append(SkShaper::RunHandler* handler, const SkShaper::RunHandler::RunInfo& runInfo, in append()
555 void emit(const ShapedLine& line, SkShaper::RunHandler* handler) { in emit()
[all …]
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()
DSkShaper_primitive.cpp15 class SkShaperPrimitive : public SkShaper {
43 std::unique_ptr<SkShaper> SkShaper::MakePrimitive() { in MakePrimitive()
/third_party/flutter/skia/modules/skshaper/src/
DSkShaper.cpp25 std::unique_ptr<SkShaper> SkShaper::Make(sk_sp<SkFontMgr> fontmgr) { in Make()
27 std::unique_ptr<SkShaper> shaper = SkShaper::MakeShaperDrivenWrapper(std::move(fontmgr)); in Make()
32 return SkShaper::MakePrimitive(); in Make()
35 SkShaper::SkShaper() {} in SkShaper() function in SkShaper
36 SkShaper::~SkShaper() {} in ~SkShaper()
44 class FontMgrRunIterator final : public SkShaper::FontRunIterator {
120 std::unique_ptr<SkShaper::FontRunIterator>
121 SkShaper::MakeFontMgrRunIterator(const char* utf8, size_t utf8Bytes, in MakeFontMgrRunIterator()
127 std::unique_ptr<SkShaper::LanguageRunIterator>
128 SkShaper::MakeStdLanguageRunIterator(const char* utf8, size_t utf8Bytes) { in MakeStdLanguageRunIterator()
[all …]
DSkShaper_harfbuzz.cpp321 class IcuBiDiRunIterator final : public SkShaper::BiDiRunIterator {
366 class HbIcuScriptRunIterator final : public SkShaper::ScriptRunIterator {
424 void insert(SkShaper::RunIterator* runIterator) { in insert()
429 const SkShaper::RunIterator* leastRun = fRunIterators.peek(); in advanceRuns()
435 SkShaper::RunIterator* currentRun = nullptr; in advanceRuns()
461 … static bool CompareRunIterator(SkShaper::RunIterator* const& a, SkShaper::RunIterator* const& b) { in CompareRunIterator()
464 SkTDPQueue<SkShaper::RunIterator*, CompareRunIterator> fRunIterators;
479 ShapedRun(SkShaper::RunHandler::Range utf8Range, const SkFont& font, UBiDiLevel level, in ShapedRun()
485 SkShaper::RunHandler::Range fUtf8Range;
501 void append(SkShaper::RunHandler* handler, const SkShaper::RunHandler::RunInfo& runInfo, in append()
[all …]
DSkShaper_primitive.cpp16 class SkShaperPrimitive : public SkShaper {
35 std::unique_ptr<SkShaper> SkShaper::MakePrimitive() { in MakePrimitive()
/third_party/flutter/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()
65 auto shaper = SkShaper::Make(); in cluster_test()
83 auto fontIterator = SkShaper::TrivialFontRunIterator(font, data->size()); in cluster_test()
84 auto bidiIterator = SkShaper::TrivialBiDiRunIterator(0, data->size()); in cluster_test()
85 auto scriptIterator = SkShaper::TrivialScriptRunIterator(latn, data->size()); in cluster_test()
86 auto languageIterator = SkShaper::TrivialLanguageRunIterator("en-US", data->size()); in cluster_test()
/third_party/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();
121 static std::unique_ptr<SkShaper::FontRunIterator>
[all …]
/third_party/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()
/third_party/flutter/skia/modules/skshaper/include/
DSkShaper.h29 class SkShaper {
31 static std::unique_ptr<SkShaper> MakePrimitive();
33 static std::unique_ptr<SkShaper> MakeShaperDrivenWrapper(sk_sp<SkFontMgr> = nullptr);
34 static std::unique_ptr<SkShaper> MakeShapeThenWrap(sk_sp<SkFontMgr> = nullptr);
35 static std::unique_ptr<SkShaper> MakeShapeDontWrapOrReorder(sk_sp<SkFontMgr> = nullptr);
38 static std::unique_ptr<SkShaper> Make(sk_sp<SkFontMgr> = nullptr);
40 SkShaper();
41 virtual ~SkShaper();
202 SkShaper(const SkShaper&) = delete;
203 SkShaper& operator=(const SkShaper&) = delete;
[all …]
/third_party/flutter/skia/experimental/editor/
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()
271 std::unique_ptr<SkShaper> shaper = SkShaper::Make(); in Shape()
DREADME.md3 This is an experimental Editor layer that abstracts out SkShaper text layeout
18 | | |SkShaper |
/third_party/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()
/third_party/skia/experimental/sktext/src/
DLogicalRun.h14 … LogicalRun(const SkShaper::RunHandler::RunInfo& info, TextIndex textStart, SkScalar glyphOffset);
15 SkShaper::RunHandler::Buffer newRunBuffer() { in newRunBuffer()
73 SkShaper::RunHandler::Range fUtf8Range;
/third_party/flutter/skia/modules/skshaper/
Dskshaper.gni10 skia_shaper_public = [ "$_include/SkShaper.h" ]
13 "$_src/SkShaper.cpp",
/third_party/skia/modules/skshaper/
Dskshaper.gni10 skia_shaper_public = [ "$_include/SkShaper.h" ]
13 "$_src/SkShaper.cpp",
/third_party/skia/modules/skparagraph/src/
DOneLineShaper.cpp200 const SkShaper::RunHandler::RunInfo info = { in finish()
205 SkShaper::RunHandler::Range(text.start - run->fClusterStart, text.width()) in finish()
431 SkTArray<SkShaper::Feature> features; in iterateThroughFontStyles()
439 SkShaper::Feature feature = { in iterateThroughFontStyles()
599 const SkShaper::RunHandler::RunInfo runInfo = { in iterateThroughShapingRegions()
604 SkShaper::RunHandler::Range(0, placeholder.fRange.width()) in iterateThroughShapingRegions()
634 auto shaper = SkShaper::MakeShapeDontWrapOrReorder(); in shape()
642 (Block block, SkTArray<SkShaper::Feature> features) { in shape()
686 SkShaper::TrivialFontRunIterator fontIter(font, unresolvedText.size()); in shape()
689SkShaper::TrivialBiDiRunIterator bidiIter(defaultBidiLevel, unresolvedText.size()); in shape()
[all …]
/third_party/skia/modules/skplaintexteditor/
DREADME.md3 This is an experimental Editor layer that abstracts out SkShaper text layeout
18 | | |SkShaper |
/third_party/flutter/skia/samplecode/
DSampleTextBox.cpp38 TextBoxView() : fShaper(SkShaper::Make()) {} in TextBoxView()
78 std::unique_ptr<SkShaper> fShaper;
/third_party/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()
/third_party/flutter/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()
/third_party/skia/bench/
DShaperBench.cpp16 std::unique_ptr<SkShaper> fShaper;
23 fShaper = SkShaper::Make(); in onDelayedSetup()
/third_party/flutter/skia/bench/
DShaperBench.cpp16 std::unique_ptr<SkShaper> fShaper;
23 fShaper = SkShaper::Make(); in onDelayedSetup()

123