65 {
67 return nullptr;
68 }
71
72 const uint32_t* uint_data = static_cast<const uint32_t*>(byte_data.data());
73 const float* float_data = static_cast<const float*>(byte_data.data());
74
77 if (
flags.applies_shader()) {
79 }
80 if (
flags.applies_color_filter()) {
82 }
83 if (
flags.applies_image_filter()) {
85 }
86 } else {
90
94 return nullptr;
95 }
96
97 if (
flags.applies_shader()) {
101 } else {
106 } else {
108 }
109 }
110 }
111
112 if (
flags.applies_color_filter()) {
116 } else {
120 }
121 }
122
123 if (
flags.applies_image_filter()) {
127 } else {
128 ImageFilter* decoded =
131 }
132 }
133 }
134
135 if (
flags.applies_anti_alias()) {
137 }
138
139 if (
flags.applies_alpha_or_color()) {
142 }
143
144 if (
flags.applies_blend()) {
148 }
149
150 if (
flags.applies_style()) {
153 }
154
158
161
164
167 }
168
169 if (
flags.applies_color_filter()) {
171 }
172
173 if (
flags.applies_mask_filter()) {
177 break;
184 break;
185 }
186 }
187
189}
static sk_sp< SkImage > color_filter(const SkImage *image, SkColorFilter *colorFilter)
static std::shared_ptr< DlMaskFilter > Make(DlBlurStyle style, SkScalar sigma, bool respect_ctm=true)
DlPaint & setColor(DlColor color)
DlPaint & setAntiAlias(bool isAntiAlias)
DlPaint & setInvertColors(bool isInvertColors)
DlPaint & setColorFilter(const std::shared_ptr< const DlColorFilter > &filter)
DlPaint & setMaskFilter(const std::shared_ptr< DlMaskFilter > &filter)
DlPaint & setStrokeCap(DlStrokeCap cap)
DlPaint & setStrokeWidth(float width)
DlPaint & setStrokeMiter(float miter)
DlPaint & setBlendMode(DlBlendMode mode)
DlDrawStyle getDrawStyle() const
DlPaint & setImageFilter(const std::shared_ptr< const DlImageFilter > &filter)
DlPaint & setDrawStyle(DlDrawStyle style)
DlPaint & setStrokeJoin(DlStrokeJoin join)
DlPaint & setColorSource(std::shared_ptr< const DlColorSource > source)
static DlImageSampling SamplingFromIndex(int filterQualityIndex)
const DlPaint * paint(DlPaint &paint, const DisplayListAttributeFlags &flags) const
DART_EXPORT Dart_Handle Dart_ListGetRange(Dart_Handle list, intptr_t offset, intptr_t length, Dart_Handle *result)
struct _Dart_Handle * Dart_Handle
DART_EXPORT Dart_Handle Dart_ListLength(Dart_Handle list, intptr_t *length)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT bool Dart_IsList(Dart_Handle object)
FlutterSemanticsFlag flags
#define FML_CHECK(condition)
#define FML_DCHECK(condition)
SkSamplingOptions sampling
constexpr int kStrokeJoinIndex
constexpr int kMaskFilterIndex
constexpr int kShaderIndex
constexpr uint32_t kColorDefault
constexpr int kInvertColorIndex
constexpr int kBlendModeIndex
constexpr int kStyleIndex
constexpr int kMaskFilterSigmaIndex
constexpr int kStrokeCapIndex
constexpr int kObjectCount
constexpr uint32_t kBlendModeDefault
static float SafeNarrow(double value)
constexpr int kColorFilterIndex
constexpr int kStrokeMiterLimitIndex
constexpr int kImageFilterIndex
constexpr int kIsAntiAliasIndex
constexpr int kStrokeWidthIndex
constexpr float kStrokeMiterLimitDefault
constexpr int kFilterQualityIndex
constexpr int kColorIndex
constexpr int kMaskFilterBlurStyleIndex
constexpr size_t kDataByteCount
SK_API sk_sp< PrecompileShader > ColorFilter(SkSpan< const sk_sp< PrecompileShader > > shaders, SkSpan< const sk_sp< PrecompileColorFilter > > colorFilters)
const Scalar stroke_width