#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 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 |
Additional Inherited Members | |
Static Public Attributes inherited from flutter::DlOpReceiver | |
| static constexpr int | kMaxDrawPointsCount = ((1 << 29) - 1) |
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.
Referenced by flutter::EmbedderExternalView::HasEngineRenderedContents(), flutter::testing::TEST(), and flutter::testing::TEST().