8#ifndef SkImageFilter_Base_DEFINED
9#define SkImageFilter_Base_DEFINED
143 static std::pair<sk_sp<SkImageFilter>, std::optional<SkRect>>
159 std::optional<SkRect>
cropRect()
const {
return fCropRect; }
168 std::optional<SkRect> fCropRect;
175 std::optional<bool> usesSrc = {});
207 static void PurgeCache();
325#define SK_IMAGEFILTER_UNFLATTEN_COMMON(localVar, expectedCount) \
328 if (!localVar.unflatten(buffer, expectedCount)) { \
void SkRegisterMorphologyImageFilterFlattenables()
void SkRegisterCropImageFilterFlattenable()
void SkRegisterRuntimeImageFilterFlattenable()
void SkRegisterMagnifierImageFilterFlattenable()
void SkRegisterImageImageFilterFlattenable()
void SkRegisterLegacyDropShadowImageFilterFlattenable()
static SkImageFilter_Base * as_IFB(SkImageFilter *filter)
void SkRegisterColorFilterImageFilterFlattenable()
void SkRegisterComposeImageFilterFlattenable()
void SkRegisterBlurImageFilterFlattenable()
void SkRegisterMatrixConvolutionImageFilterFlattenable()
void SkRegisterLightingImageFilterFlattenables()
void SkRegisterDisplacementMapImageFilterFlattenable()
void SkRegisterMatrixTransformImageFilterFlattenable()
void SkRegisterPictureImageFilterFlattenable()
void SkRegisterMergeImageFilterFlattenable()
void SkRegisterBlendImageFilterFlattenable()
void SkRegisterShaderImageFilterFlattenable()
sk_sp< SkImageFilter > * inputs()
bool unflatten(SkReadBuffer &, int expectedInputs)
sk_sp< SkImageFilter > getInput(int index)
std::optional< SkRect > cropRect() const
virtual bool onIsColorFilterNode(SkColorFilter **) const
~SkImageFilter_Base() override
virtual skif::LayerSpace< SkIRect > onGetInputLayerBounds(const skif::Mapping &mapping, const skif::LayerSpace< SkIRect > &desiredOutput, std::optional< skif::LayerSpace< SkIRect > > contentBounds) const =0
std::optional< skif::DeviceSpace< SkIRect > > getOutputBounds(const skif::Mapping &mapping, const skif::ParameterSpace< SkRect > &contentBounds) const
friend class SkImageFilter
virtual bool onAffectsTransparentBlack() const
static SkFlattenable::Type GetFlattenableType()
skif::LayerSpace< SkIRect > getChildInputLayerBounds(int index, const skif::Mapping &mapping, const skif::LayerSpace< SkIRect > &desiredOutput, std::optional< skif::LayerSpace< SkIRect > > contentBounds) const
void flatten(SkWriteBuffer &) const override
virtual bool ignoreInputsAffectsTransparentBlack() const
virtual std::optional< skif::LayerSpace< SkIRect > > onGetOutputLayerBounds(const skif::Mapping &mapping, std::optional< skif::LayerSpace< SkIRect > > contentBounds) const =0
virtual skif::FilterResult onFilterImage(const skif::Context &context) const =0
skif::LayerSpace< SkIRect > getInputBounds(const skif::Mapping &mapping, const skif::DeviceSpace< SkIRect > &desiredOutput, std::optional< skif::ParameterSpace< SkRect > > knownContentBounds) const
skif::FilterResult getChildOutput(int index, const skif::Context &ctx) const
sk_sp< SkImage > makeImageWithFilter(sk_sp< skif::Backend > backend, sk_sp< SkImage > src, const SkIRect &subset, const SkIRect &clipBounds, SkIRect *outSubset, SkIPoint *offset) const
SkFlattenable::Type getFlattenableType() const override
skif::FilterResult filterImage(const skif::Context &context) const
uint32_t uniqueID() const
bool affectsTransparentBlack() const
std::optional< skif::LayerSpace< SkIRect > > getChildOutputLayerBounds(int index, const skif::Mapping &mapping, std::optional< skif::LayerSpace< SkIRect > > contentBounds) const
MatrixCapability getCTMCapability() const
static std::pair< sk_sp< SkImageFilter >, std::optional< SkRect > > Unflatten(SkReadBuffer &buffer)
virtual MatrixCapability onGetCTMCapability() const
friend class SkImageFilter_Base
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 to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer