8#ifndef SkBlurEngine_DEFINED
9#define SkBlurEngine_DEFINED
104 const SkIRect& dstRect)
const = 0;
121 const SkIRect& dstRect)
const override;
154 static constexpr int KernelWidth(
int radius) {
return 2 * radius + 1; }
232 std::array<SkV4, kMaxSamples/4>& kernel);
259 std::array<SkV4, kMaxSamples/2>& offsetsAndKernel);
#define sk_float_ceil2int(x)
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
virtual ~Algorithm()=default
virtual float maxSigma() const =0
virtual bool supportsOnlyDecalTiling() const =0
virtual sk_sp< SkSpecialImage > blur(SkSize sigma, sk_sp< SkSpecialImage > src, const SkIRect &srcRect, SkTileMode tileMode, const SkIRect &dstRect) const =0
static int SigmaToRadius(float sigma)
virtual ~SkBlurEngine()=default
static constexpr bool IsEffectivelyIdentity(float sigma)
virtual const Algorithm * findAlgorithm(SkSize sigma, SkColorType colorType) const =0
float maxSigma() const override
static constexpr int kMaxSamples
static void Compute1DBlurKernel(float sigma, int radius, SkSpan< float > kernel)
static void Compute1DBlurLinearKernel(float sigma, int radius, std::array< SkV4, kMaxSamples/2 > &offsetsAndKernel)
static constexpr float kMaxLinearSigma
virtual sk_sp< SkDevice > makeDevice(const SkImageInfo &) const =0
static void Compute2DBlurOffsets(SkISize radius, std::array< SkV4, kMaxSamples/2 > &offsets)
static constexpr int LinearKernelWidth(int radius)
sk_sp< SkSpecialImage > blur(SkSize sigma, sk_sp< SkSpecialImage > src, const SkIRect &srcRect, SkTileMode tileMode, const SkIRect &dstRect) const override
static const SkRuntimeEffect * GetBlur2DEffect(const SkISize &radii)
static constexpr int KernelWidth(int radius)
static const SkRuntimeEffect * GetLinearBlur1DEffect(int radius)
static void Compute2DBlurKernel(SkSize sigma, SkISize radius, SkSpan< float > kernel)
bool supportsOnlyDecalTiling() const override
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir