#include <dl_dispatcher.h>
Public Member Functions | |
| void | setAntiAlias (bool aa) 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 | setColorSource (const flutter::DlColorSource *source) override |
| void | setColorFilter (const flutter::DlColorFilter *filter) override |
| void | setInvertColors (bool invert) override |
| void | setBlendMode (flutter::DlBlendMode mode) override |
| void | setMaskFilter (const flutter::DlMaskFilter *filter) override |
| void | setImageFilter (const flutter::DlImageFilter *filter) override |
| void | save (uint32_t total_content_depth) override |
| void | saveLayer (const DlRect &bounds, const flutter::SaveLayerOptions &options, uint32_t total_content_depth, flutter::DlBlendMode max_content_mode, const flutter::DlImageFilter *backdrop) 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 | clipRect (const DlRect &rect, ClipOp clip_op, bool is_aa) override |
| void | clipOval (const DlRect &bounds, ClipOp clip_op, bool is_aa) override |
| void | clipRRect (const SkRRect &rrect, ClipOp clip_op, bool is_aa) override |
| void | clipPath (const DlPath &path, ClipOp clip_op, bool is_aa) override |
| void | drawColor (flutter::DlColor color, flutter::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 | drawRRect (const SkRRect &rrect) override |
| void | drawDRRect (const SkRRect &outer, const SkRRect &inner) 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 (PointMode mode, uint32_t count, const DlPoint points[]) override |
| void | drawVertices (const std::shared_ptr< flutter::DlVertices > &vertices, flutter::DlBlendMode dl_mode) override |
| void | drawImage (const sk_sp< flutter::DlImage > image, const DlPoint &point, flutter::DlImageSampling sampling, bool render_with_attributes) override |
| void | drawImageRect (const sk_sp< flutter::DlImage > image, const DlRect &src, const DlRect &dst, flutter::DlImageSampling sampling, bool render_with_attributes, SrcRectConstraint constraint) override |
| void | drawImageNine (const sk_sp< flutter::DlImage > image, const DlIRect ¢er, const DlRect &dst, flutter::DlFilterMode filter, bool render_with_attributes) override |
| void | drawAtlas (const sk_sp< flutter::DlImage > atlas, const SkRSXform xform[], const DlRect tex[], const flutter::DlColor colors[], int count, flutter::DlBlendMode mode, flutter::DlImageSampling sampling, const DlRect *cull_rect, bool render_with_attributes) override |
| void | drawDisplayList (const sk_sp< flutter::DisplayList > display_list, DlScalar opacity) override |
| void | drawTextBlob (const sk_sp< SkTextBlob > blob, DlScalar x, DlScalar y) override |
| void | drawTextFrame (const std::shared_ptr< impeller::TextFrame > &text_frame, DlScalar x, DlScalar y) override |
| void | drawShadow (const DlPath &path, const flutter::DlColor color, const DlScalar elevation, bool transparent_occluder, DlScalar dpr) override |
| virtual Canvas & | GetCanvas ()=0 |
Static Protected Member Functions | |
| static void | SimplifyOrDrawPath (Canvas &canvas, const DlPath &cache, const Paint &paint) |
Protected Attributes | |
| Paint | paint_ |
| Matrix | initial_matrix_ |
Definition at line 27 of file dl_dispatcher.h.
|
override |
Definition at line 438 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::ClipGeometry(), GetCanvas(), impeller::Geometry::MakeOval(), and impeller::ToClipOperation().
|
override |
Definition at line 473 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::ClipGeometry(), GetCanvas(), impeller::Geometry::MakeFillPath(), impeller::Geometry::MakeOval(), impeller::Geometry::MakeRect(), impeller::Geometry::MakeRoundRect(), impeller::ToClipOperation(), impeller::skia_conversions::ToRect(), and impeller::skia_conversions::ToSize().
|
override |
Definition at line 429 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::ClipGeometry(), GetCanvas(), impeller::Geometry::MakeRect(), and impeller::ToClipOperation().
|
override |
Definition at line 448 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::ClipGeometry(), GetCanvas(), impeller::Geometry::MakeFillPath(), impeller::Geometry::MakeOval(), impeller::Geometry::MakeRect(), impeller::Geometry::MakeRoundRect(), impeller::ToClipOperation(), impeller::skia_conversions::ToPath(), impeller::skia_conversions::ToRect(), and impeller::skia_conversions::ToSize().
|
override |
Definition at line 642 of file dl_dispatcher.cc.
References impeller::PathBuilder::AddArc(), AUTO_DEPTH_WATCHER, impeller::Canvas::DrawPath(), GetCanvas(), paint_, and impeller::PathBuilder::TakePath().
|
override |
Definition at line 763 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::DrawAtlas(), GetCanvas(), paint_, impeller::skia_conversions::ToBlendMode(), impeller::skia_conversions::ToRect(), and impeller::skia_conversions::ToSamplerDescriptor().
Definition at line 578 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::DrawCircle(), GetCanvas(), and paint_.
|
override |
Definition at line 498 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Paint::blend_mode, color, impeller::Paint::color, impeller::Canvas::DrawPaint(), GetCanvas(), impeller::skia_conversions::ToBlendMode(), and impeller::skia_conversions::ToColor().
|
override |
Definition at line 522 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, drawLine(), impeller::Canvas::DrawPath(), GetCanvas(), impeller::Paint::kStroke, impeller::PathBuilder::LineTo(), impeller::PathBuilder::MoveTo(), paint_, impeller::Paint::style, and impeller::PathBuilder::TakePath().
|
override |
Definition at line 791 of file dl_dispatcher.cc.
References AUTO_DEPTH_CHECK, AUTO_DEPTH_WATCHER, impeller::Paint::color, impeller::TRect< T >::GetBottom(), GetCanvas(), impeller::Canvas::GetCurrentTransform(), impeller::TRect< T >::GetLeft(), impeller::Canvas::GetLocalCoverageLimit(), impeller::TRect< T >::GetRight(), impeller::Canvas::GetSaveCount(), impeller::TRect< T >::GetTop(), impeller::Matrix::HasPerspective(), initial_matrix_, impeller::kContainsContents, paint_, impeller::Canvas::RestoreToCount(), impeller::Canvas::Save(), impeller::Canvas::SaveLayer(), impeller::skia_conversions::ToRect(), and impeller::TRect< T >::TransformBounds().
|
override |
Definition at line 598 of file dl_dispatcher.cc.
References impeller::PathBuilder::AddPath(), AUTO_DEPTH_WATCHER, impeller::Canvas::DrawPath(), GetCanvas(), impeller::kOdd, paint_, impeller::PathBuilder::TakePath(), and impeller::skia_conversions::ToPath().
|
override |
Definition at line 699 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, and drawImageRect().
|
override |
Definition at line 747 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::NinePatchConverter::DrawNinePatch(), GetCanvas(), impeller::TRect< Scalar >::MakeLTRB(), paint_, and impeller::ToSamplerDescriptor().
|
override |
Definition at line 728 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::DrawImageRect(), GetCanvas(), paint_, and impeller::skia_conversions::ToSamplerDescriptor().
Referenced by drawImage().
Definition at line 516 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::DrawLine(), GetCanvas(), and paint_.
Referenced by drawDashedLine().
|
override |
Definition at line 571 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::DrawOval(), GetCanvas(), and paint_.
|
override |
Definition at line 509 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::DrawPaint(), GetCanvas(), and paint_.
|
override |
Definition at line 608 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, GetCanvas(), paint_, and SimplifyOrDrawPath().
|
override |
Definition at line 655 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::DrawLine(), impeller::Canvas::DrawPoints(), GetCanvas(), impeller::kRound, impeller::kSquare, impeller::Paint::kStroke, paint_, impeller::Paint::stroke_cap, impeller::Paint::stroke_width, impeller::Paint::style, and impeller::skia_conversions::ToPoints().
|
override |
Definition at line 564 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::DrawRect(), GetCanvas(), and paint_.
|
override |
Definition at line 585 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::DrawPath(), impeller::Canvas::DrawRRect(), GetCanvas(), impeller::skia_conversions::IsNearlySimpleRRect(), paint_, impeller::skia_conversions::ToPath(), impeller::skia_conversions::ToRect(), and impeller::skia_conversions::ToSize().
|
override |
Definition at line 880 of file dl_dispatcher.cc.
References impeller::Color::alpha, AUTO_DEPTH_CHECK, AUTO_DEPTH_WATCHER, impeller::Color::blue, color, impeller::Paint::color, GetCanvas(), impeller::Canvas::GetCurrentTransform(), impeller::Matrix::GetScale(), impeller::Color::green, impeller::Paint::kFill, impeller::FilterContents::kNormal, impeller::Matrix::MakeTranslation(), impeller::Paint::mask_blur_descriptor, impeller::Canvas::PreConcat(), impeller::Color::red, impeller::Canvas::Restore(), impeller::Canvas::Save(), SimplifyOrDrawPath(), impeller::Paint::MaskBlurDescriptor::style, impeller::Paint::style, impeller::skia_conversions::ToColor(), and impeller::Vector3::y.
|
override |
|
override |
Definition at line 867 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Canvas::DrawTextFrame(), GetCanvas(), and paint_.
|
override |
Definition at line 694 of file dl_dispatcher.cc.
|
pure virtual |
Referenced by clipOval(), clipPath(), clipRect(), clipRRect(), drawArc(), drawAtlas(), drawCircle(), drawColor(), drawDashedLine(), drawDisplayList(), drawDRRect(), drawImageNine(), drawImageRect(), drawLine(), drawOval(), drawPaint(), drawPath(), drawPoints(), drawRect(), drawRRect(), drawShadow(), drawTextFrame(), restore(), rotate(), save(), saveLayer(), scale(), skew(), transformFullPerspective(), transformReset(), and translate().
|
override |
Definition at line 327 of file dl_dispatcher.cc.
References GetCanvas(), and impeller::Canvas::Restore().
|
override |
Definition at line 346 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, GetCanvas(), and impeller::Canvas::Rotate().
|
override |
Definition at line 294 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, GetCanvas(), and impeller::Canvas::Save().
|
override |
Definition at line 301 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, GetCanvas(), impeller::kContainsContents, impeller::kMayClipContents, paint_, and impeller::Canvas::SaveLayer().
Definition at line 339 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, GetCanvas(), and impeller::Canvas::Scale().
|
override |
Definition at line 137 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER.
|
override |
Definition at line 244 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Paint::blend_mode, paint_, and impeller::skia_conversions::ToBlendMode().
|
override |
Definition at line 164 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, color, impeller::Paint::color, paint_, and impeller::skia_conversions::ToColor().
|
override |
Definition at line 230 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Paint::color_filter, and paint_.
|
override |
Definition at line 219 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Paint::color_source, and paint_.
|
override |
Definition at line 157 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, paint_, impeller::Paint::style, and impeller::ToStyle().
|
override |
Definition at line 287 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Paint::image_filter, and paint_.
|
override |
Definition at line 237 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Paint::invert_colors, and paint_.
|
override |
Definition at line 264 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::Paint::mask_blur_descriptor, paint_, and impeller::ToBlurStyle().
|
override |
Definition at line 185 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::kButt, impeller::kRound, impeller::kSquare, paint_, and impeller::Paint::stroke_cap.
|
override |
Definition at line 202 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, impeller::kBevel, impeller::kMiter, impeller::kRound, paint_, and impeller::Paint::stroke_join.
|
override |
Definition at line 178 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, paint_, and impeller::Paint::stroke_miter.
|
override |
Definition at line 171 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, paint_, and impeller::Paint::stroke_width.
|
staticprotected |
Definition at line 614 of file dl_dispatcher.cc.
References impeller::Canvas::DrawOval(), impeller::Canvas::DrawPath(), impeller::Canvas::DrawRect(), impeller::Canvas::DrawRRect(), impeller::skia_conversions::ToRect(), and impeller::skia_conversions::ToSize().
Referenced by drawPath(), and drawShadow().
Definition at line 353 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, GetCanvas(), and impeller::Canvas::Skew().
|
override |
Definition at line 360 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, and transformFullPerspective().
|
override |
Definition at line 379 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, GetCanvas(), impeller::Canvas::Transform(), and transform.
Referenced by transform2DAffine().
|
override |
Definition at line 411 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, GetCanvas(), initial_matrix_, impeller::Canvas::ResetTransform(), and impeller::Canvas::Transform().
Definition at line 332 of file dl_dispatcher.cc.
References AUTO_DEPTH_WATCHER, GetCanvas(), and impeller::Canvas::Translate().
|
protected |
Definition at line 239 of file dl_dispatcher.h.
Referenced by drawDisplayList(), and transformReset().
|
protected |
Definition at line 238 of file dl_dispatcher.h.
Referenced by drawArc(), drawAtlas(), drawCircle(), drawDashedLine(), drawDisplayList(), drawDRRect(), drawImageNine(), drawImageRect(), drawLine(), drawOval(), drawPaint(), drawPath(), drawPoints(), drawRect(), drawRRect(), drawTextFrame(), impeller::CanvasDlDispatcher::drawVertices(), saveLayer(), setBlendMode(), setColor(), setColorFilter(), setColorSource(), setDrawStyle(), setImageFilter(), setInvertColors(), setMaskFilter(), setStrokeCap(), setStrokeJoin(), setStrokeMiter(), and setStrokeWidth().