#include <dl_dispatcher.h>
Public Member Functions | |
| FirstPassDispatcher (const ContentContext &renderer, const Matrix &initial_matrix, const Rect cull_rect) | |
| ~FirstPassDispatcher () | |
| void | save () override |
| void | saveLayer (const DlRect &bounds, const flutter::SaveLayerOptions options, const flutter::DlImageFilter *backdrop, std::optional< int64_t > backdrop_id) override |
| void | restore () override |
| void | translate (DlScalar tx, DlScalar ty) override |
| void | scale (DlScalar sx, DlScalar sy) override |
| void | rotate (DlScalar degrees) override |
| void | skew (DlScalar sx, DlScalar sy) override |
| void | transform2DAffine (DlScalar mxx, DlScalar mxy, DlScalar mxt, DlScalar myx, DlScalar myy, DlScalar myt) override |
| void | transformFullPerspective (DlScalar mxx, DlScalar mxy, DlScalar mxz, DlScalar mxt, DlScalar myx, DlScalar myy, DlScalar myz, DlScalar myt, DlScalar mzx, DlScalar mzy, DlScalar mzz, DlScalar mzt, DlScalar mwx, DlScalar mwy, DlScalar mwz, DlScalar mwt) override |
| void | transformReset () override |
| void | drawText (const std::shared_ptr< flutter::DlText > &text, DlScalar x, DlScalar y) override |
| void | drawDisplayList (const sk_sp< flutter::DisplayList > display_list, DlScalar opacity) override |
| void | setDrawStyle (flutter::DlDrawStyle style) override |
| void | setColor (flutter::DlColor color) override |
| void | setStrokeWidth (DlScalar width) override |
| void | setStrokeMiter (DlScalar limit) override |
| void | setStrokeCap (flutter::DlStrokeCap cap) override |
| void | setStrokeJoin (flutter::DlStrokeJoin join) override |
| void | setImageFilter (const flutter::DlImageFilter *filter) override |
| std::pair< std::unordered_map< int64_t, BackdropData >, size_t > | TakeBackdropData () |
Public Member Functions inherited from flutter::IgnoreAttributeDispatchHelper | |
| void | setAntiAlias (bool aa) override |
| void | setInvertColors (bool invert) override |
| void | setStrokeCap (DlStrokeCap cap) override |
| void | setStrokeJoin (DlStrokeJoin join) override |
| void | setDrawStyle (DlDrawStyle style) override |
| void | setStrokeWidth (float width) override |
| void | setStrokeMiter (float limit) override |
| void | setColor (DlColor color) override |
| void | setBlendMode (DlBlendMode mode) override |
| void | setColorSource (const DlColorSource *source) override |
| void | setImageFilter (const DlImageFilter *filter) override |
| void | setColorFilter (const DlColorFilter *filter) override |
| void | setMaskFilter (const DlMaskFilter *filter) override |
Public Member Functions inherited from flutter::DlOpReceiver | |
| virtual void | save (uint32_t total_content_depth) |
| virtual void | saveLayer (const DlRect &bounds, const SaveLayerOptions &options, uint32_t total_content_depth, DlBlendMode max_content_blend_mode, const DlImageFilter *backdrop=nullptr, std::optional< int64_t > backdrop_id=std::nullopt) |
| virtual void | saveLayer (const DlRect *bounds, const SaveLayerOptions options, const DlImageFilter *backdrop=nullptr, std::optional< int64_t > backdrop_id=std::nullopt) final |
Public Member Functions inherited from flutter::IgnoreDrawDispatchHelper | |
| void | save () override |
| void | saveLayer (const DlRect &bounds, const SaveLayerOptions options, const DlImageFilter *backdrop, std::optional< int64_t > backdrop_id) override |
| void | restore () override |
| void | drawColor (DlColor color, DlBlendMode mode) override |
| void | drawPaint () override |
| void | drawLine (const DlPoint &p0, const DlPoint &p1) override |
| void | drawDashedLine (const DlPoint &p0, const DlPoint &p1, DlScalar on_length, DlScalar off_length) override |
| void | drawRect (const DlRect &rect) override |
| void | drawOval (const DlRect &bounds) override |
| void | drawCircle (const DlPoint ¢er, DlScalar radius) override |
| void | drawRoundRect (const DlRoundRect &rrect) override |
| void | drawDiffRoundRect (const DlRoundRect &outer, const DlRoundRect &inner) override |
| void | drawRoundSuperellipse (const DlRoundSuperellipse &rse) override |
| void | drawPath (const DlPath &path) override |
| void | drawArc (const DlRect &oval_bounds, DlScalar start_degrees, DlScalar sweep_degrees, bool use_center) override |
| void | drawPoints (DlPointMode mode, uint32_t count, const DlPoint points[]) override |
| void | drawVertices (const std::shared_ptr< DlVertices > &vertices, DlBlendMode mode) override |
| void | drawImage (const sk_sp< DlImage > image, const DlPoint &point, DlImageSampling sampling, bool render_with_attributes) override |
| void | drawImageRect (const sk_sp< DlImage > image, const DlRect &src, const DlRect &dst, DlImageSampling sampling, bool render_with_attributes, DlSrcRectConstraint constraint) override |
| void | drawImageNine (const sk_sp< DlImage > image, const DlIRect ¢er, const DlRect &dst, DlFilterMode filter, bool render_with_attributes) override |
| void | drawAtlas (const sk_sp< DlImage > atlas, const DlRSTransform xform[], const DlRect tex[], const DlColor colors[], int count, DlBlendMode mode, DlImageSampling sampling, const DlRect *cull_rect, bool render_with_attributes) override |
| void | drawDisplayList (const sk_sp< DisplayList > display_list, DlScalar opacity) override |
| void | drawText (const std::shared_ptr< DlText > &text, DlScalar x, DlScalar y) override |
| void | drawShadow (const DlPath &path, const DlColor color, const DlScalar elevation, bool transparent_occluder, DlScalar dpr) override |
Additional Inherited Members | |
Static Public Attributes inherited from flutter::DlOpReceiver | |
| static constexpr int | kMaxDrawPointsCount = ((1 << 29) - 1) |
Performs a first pass over the display list to collect infomation. Collects things like text frames and backdrop filters.
Definition at line 311 of file dl_dispatcher.h.
| impeller::FirstPassDispatcher::FirstPassDispatcher | ( | const ContentContext & | renderer, |
| const Matrix & | initial_matrix, | ||
| const Rect | cull_rect | ||
| ) |
Definition at line 966 of file dl_dispatcher.cc.
| impeller::FirstPassDispatcher::~FirstPassDispatcher | ( | ) |
Definition at line 973 of file dl_dispatcher.cc.
References FML_DCHECK.
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1120 of file dl_dispatcher.cc.
References FML_DCHECK, impeller::Matrix::HasPerspective(), impeller::TRect< T >::IsEmpty(), impeller::TRect< T >::IsMaximum(), restore(), impeller::TRect< T >::RoundOut(), and save().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1079 of file dl_dispatcher.cc.
References impeller::Paint::color, impeller::GlyphProperties::color, impeller::ContentContext::GetLazyGlyphAtlas(), impeller::Paint::kStroke, impeller::Matrix::MakeTranslation(), impeller::TextFrame::RoundScaledFontSize(), scale(), impeller::Paint::stroke, impeller::GlyphProperties::stroke, impeller::Paint::style, text, impeller::Color::WithAlpha(), x, and y.
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1023 of file dl_dispatcher.cc.
Referenced by drawDisplayList().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1037 of file dl_dispatcher.cc.
References impeller::Matrix::MakeRotationZ().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 977 of file dl_dispatcher.cc.
Referenced by drawDisplayList(), and saveLayer().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 982 of file dl_dispatcher.cc.
References impeller::BackdropData::backdrop_count, data, impeller::TRect< T >::Intersection(), impeller::TRect< Scalar >::MakeLTRB(), impeller::TRect< Scalar >::MakeMaximum(), save(), flutter::DlAttribute< D, T >::shared(), and impeller::TRect< T >::TransformBounds().
Implements flutter::DlOpReceiver.
Definition at line 1033 of file dl_dispatcher.cc.
References impeller::Matrix::Scale().
Referenced by drawText().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1154 of file dl_dispatcher.cc.
References impeller::Paint::color, and impeller::skia_conversions::ToColor().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1149 of file dl_dispatcher.cc.
References impeller::Paint::style, and impeller::ToStyle().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1199 of file dl_dispatcher.cc.
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1169 of file dl_dispatcher.cc.
References impeller::StrokeParameters::cap, flutter::kButt, impeller::kButt, flutter::kRound, impeller::kRound, flutter::kSquare, impeller::kSquare, and impeller::Paint::stroke.
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1184 of file dl_dispatcher.cc.
References impeller::StrokeParameters::join, flutter::kBevel, impeller::kBevel, flutter::kMiter, impeller::kMiter, flutter::kRound, impeller::kRound, and impeller::Paint::stroke.
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1164 of file dl_dispatcher.cc.
References impeller::StrokeParameters::miter_limit, and impeller::Paint::stroke.
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1159 of file dl_dispatcher.cc.
References impeller::Paint::stroke, impeller::StrokeParameters::width, and width.
Implements flutter::DlOpReceiver.
Definition at line 1041 of file dl_dispatcher.cc.
References impeller::Matrix::MakeSkew().
| std::pair< std::unordered_map< int64_t, BackdropData >, size_t > impeller::FirstPassDispatcher::TakeBackdropData | ( | ) |
Definition at line 1208 of file dl_dispatcher.cc.
Referenced by impeller::DisplayListToTexture(), and impeller::RenderToTarget().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1047 of file dl_dispatcher.cc.
References impeller::Matrix::MakeColumn().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1061 of file dl_dispatcher.cc.
References impeller::Matrix::MakeColumn().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1075 of file dl_dispatcher.cc.
Implements flutter::DlOpReceiver.
Definition at line 1029 of file dl_dispatcher.cc.
References impeller::Matrix::Translate().