#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 information that will be useful in a second pass by the CanvasDlDispatcher. This class collects things like text frames and backdrop filters.
Definition at line 359 of file dl_dispatcher.h.
| impeller::FirstPassDispatcher::FirstPassDispatcher | ( | const ContentContext & | renderer, |
| const Matrix & | initial_matrix, | ||
| const Rect | cull_rect | ||
| ) |
Definition at line 980 of file dl_dispatcher.cc.
| impeller::FirstPassDispatcher::~FirstPassDispatcher | ( | ) |
Definition at line 987 of file dl_dispatcher.cc.
References FML_DCHECK.
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1128 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 1093 of file dl_dispatcher.cc.
References impeller::Paint::color, impeller::GlyphProperties::ComputeTone(), impeller::ContentContext::GetLazyGlyphAtlas(), impeller::Paint::GetStroke(), impeller::GlyphProperties::stroke, text, impeller::GlyphProperties::tone_or_color, impeller::Color::WithAlpha(), x, and y.
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1037 of file dl_dispatcher.cc.
Referenced by drawDisplayList().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1051 of file dl_dispatcher.cc.
References impeller::Matrix::MakeRotationZ().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 991 of file dl_dispatcher.cc.
Referenced by drawDisplayList(), and saveLayer().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 996 of file dl_dispatcher.cc.
References impeller::BackdropData::backdrop_count, 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 1047 of file dl_dispatcher.cc.
References impeller::Matrix::Scale().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1162 of file dl_dispatcher.cc.
References impeller::Paint::color, and impeller::skia_conversions::ToColor().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1157 of file dl_dispatcher.cc.
References impeller::Paint::style, and impeller::ToStyle().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1207 of file dl_dispatcher.cc.
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1177 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 1192 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 1172 of file dl_dispatcher.cc.
References impeller::StrokeParameters::miter_limit, and impeller::Paint::stroke.
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1167 of file dl_dispatcher.cc.
References impeller::Paint::stroke, impeller::StrokeParameters::width, and width.
Implements flutter::DlOpReceiver.
Definition at line 1055 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 1222 of file dl_dispatcher.cc.
Referenced by impeller::DisplayListToTexture(), and impeller::RenderToTarget().
|
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.
References impeller::Matrix::MakeColumn().
|
overridevirtual |
Implements flutter::DlOpReceiver.
Definition at line 1089 of file dl_dispatcher.cc.
Implements flutter::DlOpReceiver.
Definition at line 1043 of file dl_dispatcher.cc.
References impeller::Matrix::Translate().