2#ifndef LineBreaker_DEFINED
3#define LineBreaker_DEFINED
19 : fParagraph(paragraph)
21 , fUseHalfLeading(
false)
22 , fBaselineShift(0.0f)
24 , fUnresolvedGlyphs(0)
25 , fUniqueRunId(paragraph->fRuns.
size()){ }
42 RunBlock() : fRun(nullptr) { }
53 explicit RunBlock(std::shared_ptr<Run>
run)
55 , fText(fRun->fTextRange)
58 std::shared_ptr<Run> fRun;
61 bool isFullyResolved() {
return fRun !=
nullptr && fGlyphs.width() == fRun->size(); }
66 bool iterateThroughShapingRegions(
const ShapeVisitor&
shape);
68 using ShapeSingleFontVisitor =
70 void iterateThroughFontStyles(
80 void matchResolvedFonts(
const TextStyle& textStyle,
const TypefaceVisitor& visitor);
86 void beginLine()
override {}
87 void runInfo(
const RunInfo&)
override {}
88 void commitRunInfo()
override {}
89 void commitLine()
override {}
91 Buffer runBuffer(
const RunInfo&
info)
override {
92 fCurrentRun = std::make_shared<Run>(fParagraph,
100 return fCurrentRun->newRunBuffer();
103 void commitRunBuffer(
const RunInfo&)
override;
107 return fCurrentText.
start + fCurrentRun->fClusterIndexes[glyph];
109 void addFullyResolved();
110 void addUnresolvedWithRun(
GlyphRange glyphRange);
113 void fillGaps(
size_t);
115 ParagraphImpl* fParagraph;
118 bool fUseHalfLeading;
121 size_t fUnresolvedGlyphs;
125 std::shared_ptr<Run> fCurrentRun;
126 std::deque<RunBlock> fUnresolvedBlocks;
127 std::vector<RunBlock> fResolvedBlocks;
135 : fUnicode(
unicode), fFontStyle(fontStyle), fLocale(
std::move(locale)) { }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
size_t unresolvedGlyphs()
static SkUnichar getEmojiSequenceStart(SkUnicode *unicode, const char **begin, const char *end)
OneLineShaper(ParagraphImpl *paragraph)
static const char * begin(const StringSlice &s)
Dart_NativeFunction function
SK_API sk_sp< SkDocument > Make(SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
bool operator==(const FontArguments &a, const FontArguments &b)
SkRange< size_t > ClusterRange
SkRange< size_t > TextRange
SkRange< GlyphIndex > GlyphRange
uint32_t operator()(const FontKey &key) const