#include <dl_dispatcher.h>
Public Member Functions | |
| Picture | EndRecordingAsPicture () |
| bool | PrefersImpellerPaths () const override |
| void | setAntiAlias (bool aa) override |
| void | setDrawStyle (flutter::DlDrawStyle style) override |
| void | setColor (flutter::DlColor color) override |
| void | setStrokeWidth (SkScalar width) override |
| void | setStrokeMiter (SkScalar 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 SkRect &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 (SkScalar tx, SkScalar ty) override |
| void | scale (SkScalar sx, SkScalar sy) override |
| void | rotate (SkScalar degrees) override |
| void | skew (SkScalar sx, SkScalar sy) override |
| void | transform2DAffine (SkScalar mxx, SkScalar mxy, SkScalar mxt, SkScalar myx, SkScalar myy, SkScalar myt) override |
| void | transformFullPerspective (SkScalar mxx, SkScalar mxy, SkScalar mxz, SkScalar mxt, SkScalar myx, SkScalar myy, SkScalar myz, SkScalar myt, SkScalar mzx, SkScalar mzy, SkScalar mzz, SkScalar mzt, SkScalar mwx, SkScalar mwy, SkScalar mwz, SkScalar mwt) override |
| void | transformReset () override |
| void | clipRect (const SkRect &rect, ClipOp clip_op, bool is_aa) override |
| void | clipRRect (const SkRRect &rrect, ClipOp clip_op, bool is_aa) override |
| void | clipPath (const SkPath &path, ClipOp clip_op, bool is_aa) override |
| void | clipPath (const CacheablePath &cache, ClipOp clip_op, bool is_aa) override |
| void | drawColor (flutter::DlColor color, flutter::DlBlendMode mode) override |
| void | drawPaint () override |
| void | drawLine (const SkPoint &p0, const SkPoint &p1) override |
| void | drawDashedLine (const DlPoint &p0, const DlPoint &p1, DlScalar on_length, DlScalar off_length) override |
| void | drawRect (const SkRect &rect) override |
| void | drawOval (const SkRect &bounds) override |
| void | drawCircle (const SkPoint ¢er, SkScalar radius) override |
| void | drawRRect (const SkRRect &rrect) override |
| void | drawDRRect (const SkRRect &outer, const SkRRect &inner) override |
| void | drawPath (const SkPath &path) override |
| void | drawPath (const CacheablePath &cache) override |
| void | drawArc (const SkRect &oval_bounds, SkScalar start_degrees, SkScalar sweep_degrees, bool use_center) override |
| void | drawPoints (PointMode mode, uint32_t count, const SkPoint 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 SkPoint point, flutter::DlImageSampling sampling, bool render_with_attributes) override |
| void | drawImageRect (const sk_sp< flutter::DlImage > image, const SkRect &src, const SkRect &dst, flutter::DlImageSampling sampling, bool render_with_attributes, SrcRectConstraint constraint) override |
| void | drawImageNine (const sk_sp< flutter::DlImage > image, const SkIRect ¢er, const SkRect &dst, flutter::DlFilterMode filter, bool render_with_attributes) override |
| void | drawAtlas (const sk_sp< flutter::DlImage > atlas, const SkRSXform xform[], const SkRect tex[], const flutter::DlColor colors[], int count, flutter::DlBlendMode mode, flutter::DlImageSampling sampling, const SkRect *cull_rect, bool render_with_attributes) override |
| void | drawDisplayList (const sk_sp< flutter::DisplayList > display_list, SkScalar opacity) override |
| void | drawTextBlob (const sk_sp< SkTextBlob > blob, SkScalar x, SkScalar y) override |
| void | drawTextFrame (const std::shared_ptr< impeller::TextFrame > &text_frame, SkScalar x, SkScalar y) override |
| void | drawShadow (const SkPath &path, const flutter::DlColor color, const SkScalar elevation, bool transparent_occluder, SkScalar dpr) override |
| void | drawShadow (const CacheablePath &cache, const flutter::DlColor color, const SkScalar elevation, bool transparent_occluder, SkScalar dpr) override |
| virtual Canvas & | GetCanvas ()=0 |
Definition at line 23 of file dl_dispatcher.h.
|
override |
Definition at line 757 of file dl_dispatcher.cc.
References impeller::Canvas::ClipOval(), impeller::Canvas::ClipPath(), impeller::Canvas::ClipRect(), impeller::Canvas::ClipRRect(), GetCanvas(), impeller::ToClipOperation(), impeller::skia_conversions::ToRect(), and impeller::skia_conversions::ToSize().
|
override |
Definition at line 745 of file dl_dispatcher.cc.
References UNIMPLEMENTED.
|
override |
Definition at line 719 of file dl_dispatcher.cc.
References impeller::Canvas::ClipRect(), GetCanvas(), impeller::ToClipOperation(), and impeller::skia_conversions::ToRect().
|
override |
Definition at line 727 of file dl_dispatcher.cc.
References impeller::Canvas::ClipOval(), impeller::Canvas::ClipPath(), impeller::Canvas::ClipRect(), impeller::Canvas::ClipRRect(), GetCanvas(), impeller::ToClipOperation(), impeller::skia_conversions::ToPath(), impeller::skia_conversions::ToRect(), and impeller::skia_conversions::ToSize().
|
override |
Definition at line 911 of file dl_dispatcher.cc.
References impeller::PathBuilder::AddArc(), impeller::Canvas::DrawPath(), GetCanvas(), impeller::PathBuilder::TakePath(), and impeller::skia_conversions::ToRect().
|
override |
Definition at line 1027 of file dl_dispatcher.cc.
References impeller::Canvas::DrawAtlas(), GetCanvas(), impeller::ToBlendMode(), impeller::ToColors(), impeller::skia_conversions::ToRect(), impeller::skia_conversions::ToRects(), impeller::skia_conversions::ToRSXForms(), and impeller::ToSamplerDescriptor().
|
override |
Definition at line 849 of file dl_dispatcher.cc.
References impeller::Canvas::DrawCircle(), GetCanvas(), and impeller::skia_conversions::ToPoint().
|
override |
Definition at line 780 of file dl_dispatcher.cc.
References color, impeller::Canvas::DrawPaint(), GetCanvas(), paint, impeller::ToBlendMode(), and impeller::skia_conversions::ToColor().
|
override |
Definition at line 799 of file dl_dispatcher.cc.
References drawLine(), impeller::Canvas::DrawPath(), GetCanvas(), impeller::Paint::kStroke, impeller::PathBuilder::LineTo(), impeller::PathBuilder::MoveTo(), impeller::Paint::style, and impeller::PathBuilder::TakePath().
|
override |
Definition at line 1045 of file dl_dispatcher.cc.
References impeller::Paint::color, impeller::TRect< T >::GetBottom(), GetCanvas(), impeller::Canvas::GetCurrentLocalCullingBounds(), impeller::Canvas::GetCurrentTransform(), impeller::TRect< T >::GetLeft(), impeller::TRect< T >::GetRight(), impeller::Canvas::GetSaveCount(), impeller::TRect< T >::GetTop(), impeller::Matrix::HasPerspective(), impeller::kContainsContents, impeller::Canvas::RestoreToCount(), impeller::Canvas::Save(), impeller::Canvas::SaveLayer(), and impeller::skia_conversions::ToRect().
Referenced by impeller::testing::TEST_P().
|
override |
Definition at line 865 of file dl_dispatcher.cc.
References impeller::PathBuilder::AddPath(), impeller::Canvas::DrawPath(), GetCanvas(), impeller::kOdd, impeller::PathBuilder::TakePath(), and impeller::skia_conversions::ToPath().
|
override |
|
override |
Definition at line 1013 of file dl_dispatcher.cc.
References impeller::NinePatchConverter::DrawNinePatch(), GetCanvas(), impeller::TRect< Scalar >::MakeLTRB(), impeller::skia_conversions::ToRect(), and impeller::ToSamplerDescriptor().
|
override |
Definition at line 996 of file dl_dispatcher.cc.
References impeller::Canvas::DrawImageRect(), GetCanvas(), impeller::skia_conversions::ToRect(), and impeller::ToSamplerDescriptor().
Referenced by drawImage().
|
override |
Definition at line 794 of file dl_dispatcher.cc.
References impeller::Canvas::DrawLine(), GetCanvas(), and impeller::skia_conversions::ToPoint().
Referenced by drawDashedLine().
|
override |
Definition at line 844 of file dl_dispatcher.cc.
References impeller::Canvas::DrawOval(), GetCanvas(), and impeller::skia_conversions::ToRect().
|
override |
Definition at line 789 of file dl_dispatcher.cc.
References impeller::Canvas::DrawPaint(), and GetCanvas().
|
override |
Definition at line 878 of file dl_dispatcher.cc.
References GetCanvas().
|
override |
Definition at line 873 of file dl_dispatcher.cc.
References UNIMPLEMENTED.
|
override |
Definition at line 922 of file dl_dispatcher.cc.
References impeller::Canvas::DrawLine(), impeller::Canvas::DrawPoints(), GetCanvas(), impeller::kRound, impeller::kSquare, impeller::Paint::kStroke, paint, impeller::skia_conversions::ToPoint(), and impeller::skia_conversions::ToPoints().
|
override |
Definition at line 839 of file dl_dispatcher.cc.
References impeller::Canvas::DrawRect(), GetCanvas(), and impeller::skia_conversions::ToRect().
|
override |
Definition at line 854 of file dl_dispatcher.cc.
References impeller::Canvas::DrawPath(), impeller::Canvas::DrawRRect(), GetCanvas(), impeller::skia_conversions::IsNearlySimpleRRect(), impeller::skia_conversions::ToPath(), impeller::skia_conversions::ToRect(), and impeller::skia_conversions::ToSize().
|
override |
Definition at line 1135 of file dl_dispatcher.cc.
References impeller::Color::alpha, impeller::Color::blue, color, GetCanvas(), impeller::Canvas::GetCurrentTransform(), impeller::Matrix::GetScale(), impeller::Color::green, impeller::Paint::kFill, impeller::FilterContents::kNormal, impeller::Matrix::MakeTranslation(), paint, impeller::Canvas::PreConcat(), impeller::Color::red, impeller::Canvas::Restore(), impeller::Canvas::Save(), impeller::Paint::MaskBlurDescriptor::style, impeller::skia_conversions::ToColor(), and impeller::Vector3::y.
|
override |
Definition at line 1126 of file dl_dispatcher.cc.
References UNIMPLEMENTED.
Referenced by impeller::testing::TEST_P().
|
override |
|
override |
Definition at line 1115 of file dl_dispatcher.cc.
References impeller::Canvas::DrawTextFrame(), and GetCanvas().
|
override |
Definition at line 960 of file dl_dispatcher.cc.
References impeller::Canvas::DrawVertices(), GetCanvas(), impeller::MakeVertices(), and impeller::ToBlendMode().
| Picture impeller::DlDispatcherBase::EndRecordingAsPicture | ( | ) |
Definition at line 1193 of file dl_dispatcher.cc.
References impeller::Canvas::EndRecordingAsPicture(), and GetCanvas().
Referenced by impeller::DlPlayground::OpenPlaygroundHere(), impeller::AiksPlayground::OpenPlaygroundHere(), impeller::GoldenPlaygroundTest::OpenPlaygroundHere(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
pure virtual |
Referenced by clipPath(), clipRect(), clipRRect(), drawArc(), drawAtlas(), drawCircle(), drawColor(), drawDashedLine(), drawDisplayList(), drawDRRect(), drawImageNine(), drawImageRect(), drawLine(), drawOval(), drawPaint(), drawPath(), drawPoints(), drawRect(), drawRRect(), drawShadow(), drawTextFrame(), drawVertices(), EndRecordingAsPicture(), restore(), rotate(), save(), saveLayer(), scale(), skew(), transformFullPerspective(), transformReset(), and translate().
|
inlineoverride |
Definition at line 28 of file dl_dispatcher.h.
|
override |
Definition at line 631 of file dl_dispatcher.cc.
References GetCanvas(), and impeller::Canvas::Restore().
Referenced by impeller::testing::TEST_P().
|
override |
Definition at line 646 of file dl_dispatcher.cc.
References GetCanvas(), and impeller::Canvas::Rotate().
|
override |
Definition at line 611 of file dl_dispatcher.cc.
References GetCanvas(), and impeller::Canvas::Save().
Referenced by impeller::DlDispatcher::save().
|
override |
Definition at line 616 of file dl_dispatcher.cc.
References GetCanvas(), impeller::kContainsContents, impeller::kMayClipContents, paint, impeller::Canvas::SaveLayer(), impeller::ToImageFilter(), and impeller::skia_conversions::ToRect().
Referenced by impeller::DlDispatcher::saveLayer().
|
override |
Definition at line 641 of file dl_dispatcher.cc.
References GetCanvas(), and impeller::Canvas::Scale().
Referenced by impeller::testing::TEST_P().
|
override |
Definition at line 173 of file dl_dispatcher.cc.
|
override |
Definition at line 477 of file dl_dispatcher.cc.
References impeller::Paint::blend_mode, and impeller::ToBlendMode().
|
override |
Definition at line 196 of file dl_dispatcher.cc.
References color, and impeller::Paint::color.
Referenced by setColorSource().
|
override |
Definition at line 467 of file dl_dispatcher.cc.
References impeller::Paint::color_filter, and impeller::ToColorFilter().
|
override |
Definition at line 281 of file dl_dispatcher.cc.
References color, impeller::Paint::color_source, impeller::skia_conversions::ConvertStops(), impeller::ColorSource::kColor, impeller::ColorSource::kConicalGradient, impeller::ColorSource::kImage, impeller::ColorSource::kLinearGradient, impeller::ColorSource::kRadialGradient, impeller::ColorSource::kRuntimeEffect, impeller::ColorSource::kScene, impeller::ColorSource::kSweepGradient, impeller::ColorSource::MakeColor(), impeller::ColorSource::MakeConicalGradient(), impeller::ColorSource::MakeImage(), impeller::ColorSource::MakeLinearGradient(), impeller::ColorSource::MakeRadialGradient(), impeller::ColorSource::MakeRuntimeEffect(), impeller::ColorSource::MakeSweepGradient(), setColor(), impeller::ToColorSourceType(), impeller::ToMatrix(), impeller::skia_conversions::ToPoint(), impeller::ToSamplerDescriptor(), impeller::ToTileMode(), type, and UNIMPLEMENTED.
|
override |
Definition at line 191 of file dl_dispatcher.cc.
References impeller::Paint::style, and impeller::ToStyle().
|
override |
Definition at line 606 of file dl_dispatcher.cc.
References impeller::Paint::image_filter, and impeller::ToImageFilter().
|
override |
Definition at line 472 of file dl_dispatcher.cc.
References impeller::Paint::invert_colors.
|
override |
Definition at line 495 of file dl_dispatcher.cc.
References impeller::Paint::mask_blur_descriptor, and impeller::ToBlurStyle().
|
override |
Definition at line 216 of file dl_dispatcher.cc.
References impeller::kButt, impeller::kRound, impeller::kSquare, and impeller::Paint::stroke_cap.
|
override |
Definition at line 231 of file dl_dispatcher.cc.
References impeller::kBevel, impeller::kMiter, impeller::kRound, and impeller::Paint::stroke_join.
|
override |
Definition at line 211 of file dl_dispatcher.cc.
References impeller::Paint::stroke_miter.
|
override |
Definition at line 206 of file dl_dispatcher.cc.
References impeller::Paint::stroke_width.
|
override |
Definition at line 651 of file dl_dispatcher.cc.
References GetCanvas(), and impeller::Canvas::Skew().
|
override |
|
override |
Definition at line 673 of file dl_dispatcher.cc.
References GetCanvas(), impeller::Canvas::Transform(), and transform.
Referenced by impeller::testing::TEST_P(), and transform2DAffine().
|
override |
Definition at line 703 of file dl_dispatcher.cc.
References GetCanvas(), impeller::Canvas::ResetTransform(), and impeller::Canvas::Transform().
|
override |
Definition at line 636 of file dl_dispatcher.cc.
References GetCanvas(), and impeller::Canvas::Translate().
Referenced by impeller::testing::TEST_P().