Flutter Engine
The Flutter Engine
|
#include <dl_op_spy.h>
Public Member Functions | |
bool | did_draw () |
Returns true if any non transparent content has been drawn. | |
Public Member Functions inherited from flutter::DlOpReceiver | |
virtual bool | PrefersImpellerPaths () const |
virtual void | clipPath (const CacheablePath &cache, ClipOp clip_op, bool is_aa) |
virtual void | drawPath (const CacheablePath &cache) |
virtual void | drawShadow (const CacheablePath &cache, const DlColor color, const SkScalar elevation, bool transparent_occluder, SkScalar dpr) |
virtual void | save (uint32_t total_content_depth) |
virtual void | saveLayer (const SkRect &bounds, const SaveLayerOptions &options, uint32_t total_content_depth, const DlImageFilter *backdrop=nullptr) |
virtual void | saveLayer (const SkRect *bounds, const SaveLayerOptions options, const DlImageFilter *backdrop=nullptr) final |
Private Member Functions | |
void | setColor (DlColor color) override |
void | setColorSource (const DlColorSource *source) override |
void | save () override |
void | saveLayer (const SkRect &bounds, const SaveLayerOptions options, const DlImageFilter *backdrop) override |
void | restore () override |
void | drawColor (DlColor color, 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 ¢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 | 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 DlVertices *vertices, DlBlendMode mode) override |
void | drawImage (const sk_sp< DlImage > image, const SkPoint point, DlImageSampling sampling, bool render_with_attributes) override |
void | drawImageRect (const sk_sp< DlImage > image, const SkRect &src, const SkRect &dst, DlImageSampling sampling, bool render_with_attributes, SrcRectConstraint constraint=SrcRectConstraint::kFast) override |
void | drawImageNine (const sk_sp< DlImage > image, const SkIRect ¢er, const SkRect &dst, DlFilterMode filter, bool render_with_attributes) override |
void | drawAtlas (const sk_sp< DlImage > atlas, const SkRSXform xform[], const SkRect tex[], const DlColor colors[], int count, DlBlendMode mode, DlImageSampling sampling, const SkRect *cull_rect, bool render_with_attributes) override |
void | drawDisplayList (const sk_sp< DisplayList > display_list, SkScalar opacity=SK_Scalar1) 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 DlColor color, const SkScalar elevation, bool transparent_occluder, SkScalar dpr) 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 |
Receives to drawing commands of a DisplayListBuilder.
This is used to determine whether any non-transparent pixels will be drawn on the canvas. All the drawImage operations are considered drawing non-transparent pixels.
To use this class, dispatch the operations from DisplayList to a concrete DlOpSpy object, and check the result of did_draw
method.
Definition at line 29 of file dl_op_spy.h.
bool flutter::DlOpSpy::did_draw | ( | ) |
Returns true if any non transparent content has been drawn.
Definition at line 9 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 65 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 105 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 53 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 36 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 116 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 59 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 84 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 98 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 90 of file dl_op_spy.cc.
Implements flutter::DlOpReceiver.
Definition at line 44 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 50 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 39 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 62 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 71 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 47 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 56 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 138 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 125 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 131 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 76 of file dl_op_spy.cc.
|
overrideprivatevirtual |
|
overrideprivatevirtual |
|
overrideprivatevirtual |
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 13 of file dl_op_spy.cc.
|
overrideprivatevirtual |
Implements flutter::DlOpReceiver.
Definition at line 20 of file dl_op_spy.cc.