5#include "flutter/shell/common/dl_op_spy.h"
14 if (
color.isTransparent()) {
20void DlOpSpy::setColorSource(
const DlColorSource*
source) {
24 const DlColorColorSource* color_source =
source->asColor();
25 if (color_source && color_source->color().isTransparent()) {
31void DlOpSpy::save() {}
35void DlOpSpy::restore() {}
37 did_draw_ |= !
color.isTransparent();
39void DlOpSpy::drawPaint() {
40 did_draw_ |= will_draw_;
45 did_draw_ |= will_draw_;
47void DlOpSpy::drawDashedLine(
const DlPoint& p0,
51 did_draw_ |= will_draw_;
54 did_draw_ |= will_draw_;
57 did_draw_ |= will_draw_;
60 did_draw_ |= will_draw_;
63 did_draw_ |= will_draw_;
65void DlOpSpy::drawDRRect(
const SkRRect& outer,
const SkRRect& inner) {
66 did_draw_ |= will_draw_;
69 did_draw_ |= will_draw_;
71void DlOpSpy::drawArc(
const SkRect& oval_bounds,
75 did_draw_ |= will_draw_;
80 did_draw_ |= will_draw_;
82void DlOpSpy::drawVertices(
const DlVertices* vertices,
DlBlendMode mode) {
83 did_draw_ |= will_draw_;
93 bool render_with_attributes) {
100 bool render_with_attributes,
101 SrcRectConstraint constraint) {
108 bool render_with_attributes) {
119 bool render_with_attributes) {
124 if (did_draw_ || opacity == 0) {
128 display_list->Dispatch(receiver);
129 did_draw_ |= receiver.did_draw();
134 did_draw_ |= will_draw_;
137void DlOpSpy::drawTextFrame(
138 const std::shared_ptr<impeller::TextFrame>& text_frame,
141 did_draw_ |= will_draw_;
147 bool transparent_occluder,
149 did_draw_ |= !
color.isTransparent();
static const int points[]
bool did_draw()
Returns true if any non transparent content has been drawn.
sk_sp< const SkImage > atlas
Optional< SkRect > bounds
sk_sp< const SkImage > image
sk_sp< const SkImageFilter > backdrop
sk_sp< SkBlender > blender SkRect rect
PODArray< SkColor > colors
SkSamplingOptions sampling
DlCanvas::PointMode PointMode
impeller::Scalar DlScalar
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
flutter::SaveLayerOptions SaveLayerOptions