17#ifndef LIB_TXT_SRC_PARAGRAPH_BUILDER_SKIA_H_
18#define LIB_TXT_SRC_PARAGRAPH_BUILDER_SKIA_H_
22#include "flutter/display_list/dl_paint.h"
35 std::shared_ptr<FontCollection> font_collection,
36 const bool impeller_enabled);
41 virtual void Pop()
override;
43 virtual void AddText(
const std::u16string&
text)
override;
45 virtual std::unique_ptr<Paragraph>
Build()
override;
55 std::shared_ptr<skia::textlayout::ParagraphBuilder> builder_;
64 const bool impeller_enabled_;
65 std::stack<TextStyle> txt_style_stack_;
66 std::vector<flutter::DlPaint> dl_paints_;
ParagraphBuilder implementation using Skia's text layout module.
virtual const TextStyle & PeekStyle() override
ParagraphBuilderSkia(const ParagraphStyle &style, std::shared_ptr< FontCollection > font_collection, const bool impeller_enabled)
virtual void PushStyle(const TextStyle &style) override
virtual std::unique_ptr< Paragraph > Build() override
virtual void AddText(const std::u16string &text) override
virtual void AddPlaceholder(PlaceholderRun &span) override
virtual void Pop() override
virtual ~ParagraphBuilderSkia()
friend class SkiaParagraphBuilderTests_ParagraphStrutStyle_Test