Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
impeller::DlDispatcher Class Reference

#include <dl_dispatcher.h>

Inheritance diagram for impeller::DlDispatcher:
impeller::DlDispatcherBase flutter::DlOpReceiver

Public Member Functions

 DlDispatcher ()
 Subclasses.
 
 DlDispatcher (IRect cull_rect)
 
 DlDispatcher (Rect cull_rect)
 
 ~DlDispatcher ()=default
 
void save () override
 
void saveLayer (const SkRect &bounds, const flutter::SaveLayerOptions options, const flutter::DlImageFilter *backdrop) override
 
void save (uint32_t total_content_depth) override
 
void saveLayer (const SkRect &bounds, const flutter::SaveLayerOptions &options, uint32_t total_content_depth, const flutter::DlImageFilter *backdrop) override
 
- Public Member Functions inherited from impeller::DlDispatcherBase
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 setPathEffect (const flutter::DlPathEffect *effect) 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, 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 drawRect (const SkRect &rect) override
 
void drawOval (const SkRect &bounds) override
 
void drawCircle (const SkPoint &center, 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 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 &center, 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
 
- Public Member Functions inherited from flutter::DlOpReceiver
virtual void saveLayer (const SkRect *bounds, const SaveLayerOptions options, const DlImageFilter *backdrop=nullptr) final
 
virtual void drawTextFrame (const std::shared_ptr< impeller::TextFrame > &text_frame, SkScalar x, SkScalar y)=0
 

Private Member Functions

CanvasGetCanvas () override
 

Additional Inherited Members

- Static Public Attributes inherited from flutter::DlOpReceiver
static constexpr int kMaxDrawPointsCount = ((1 << 29) - 1)
 
- Protected Types inherited from flutter::DlOpReceiver
using ClipOp = DlCanvas::ClipOp
 
using PointMode = DlCanvas::PointMode
 
using SrcRectConstraint = DlCanvas::SrcRectConstraint
 

Detailed Description

Definition at line 252 of file dl_dispatcher.h.

Constructor & Destructor Documentation

◆ DlDispatcher() [1/3]

impeller::DlDispatcher::DlDispatcher ( )
default

Subclasses.

◆ DlDispatcher() [2/3]

impeller::DlDispatcher::DlDispatcher ( IRect  cull_rect)
explicit

Definition at line 1161 of file dl_dispatcher.cc.

1161: canvas_(cull_rect) {}

◆ DlDispatcher() [3/3]

impeller::DlDispatcher::DlDispatcher ( Rect  cull_rect)
explicit

Definition at line 1163 of file dl_dispatcher.cc.

1163: canvas_(cull_rect) {}

◆ ~DlDispatcher()

impeller::DlDispatcher::~DlDispatcher ( )
default

Member Function Documentation

◆ GetCanvas()

Canvas & impeller::DlDispatcher::GetCanvas ( )
overrideprivatevirtual

Implements impeller::DlDispatcherBase.

Definition at line 1165 of file dl_dispatcher.cc.

1165 {
1166 return canvas_;
1167}

◆ save() [1/2]

void impeller::DlDispatcher::save ( )
inlineoverridevirtual

Implements flutter::DlOpReceiver.

Definition at line 263 of file dl_dispatcher.h.

263 {
264 // This dispatcher is used from test cases that might not supply
265 // a content_depth parameter. Since this dispatcher doesn't use
266 // the value, we just pass through a 0.
268 }
virtual void save()=0

◆ save() [2/2]

void impeller::DlDispatcherBase::save ( uint32_t  total_content_depth)
overridevirtual

Reimplemented from flutter::DlOpReceiver.

Definition at line 68 of file dl_dispatcher.cc.

613 {
614 GetCanvas().Save(total_content_depth);
615}
virtual void Save(uint32_t total_content_depth=kMaxDepth)
Definition canvas.cc:184
Canvas & GetCanvas() override

◆ saveLayer() [1/2]

void impeller::DlDispatcherBase::saveLayer ( const SkRect bounds,
const flutter::SaveLayerOptions options,
uint32_t  total_content_depth,
const flutter::DlImageFilter backdrop 
)
overridevirtual

Reimplemented from flutter::DlOpReceiver.

Definition at line 71 of file dl_dispatcher.cc.

621 {
622 auto paint = options.renders_with_attributes() ? paint_ : Paint{};
623 auto promise = options.content_is_clipped()
627 ToImageFilter(backdrop), promise, total_content_depth);
628}
const char * options
virtual void SaveLayer(const Paint &paint, std::optional< Rect > bounds=std::nullopt, const std::shared_ptr< ImageFilter > &backdrop_filter=nullptr, ContentBoundsPromise bounds_promise=ContentBoundsPromise::kUnknown, uint32_t total_content_depth=kMaxDepth)
Definition canvas.cc:839
const Paint & paint
Rect ToRect(const SkRect &rect)
static std::shared_ptr< ImageFilter > ToImageFilter(const flutter::DlImageFilter *filter)
@ kMayClipContents
The caller claims the bounds are a subset of an estimate of the reasonably tight bounds but likely cl...
@ kContainsContents
The caller claims the bounds are a reasonably tight estimate of the coverage of the contents and shou...

◆ saveLayer() [2/2]

void impeller::DlDispatcher::saveLayer ( const SkRect bounds,
const flutter::SaveLayerOptions  options,
const flutter::DlImageFilter backdrop 
)
inlineoverridevirtual

Implements flutter::DlOpReceiver.

Definition at line 272 of file dl_dispatcher.h.

274 {
275 // This dispatcher is used from test cases that might not supply
276 // a content_depth parameter. Since this dispatcher doesn't use
277 // the value, we just pass through a 0.
278 DlDispatcherBase::saveLayer(bounds, options, 0u, backdrop);
279 }
void saveLayer(const SkRect &bounds, const flutter::SaveLayerOptions &options, uint32_t total_content_depth, const flutter::DlImageFilter *backdrop) override

The documentation for this class was generated from the following files: