Flutter Engine
The Flutter Engine
Namespaces | Functions | Variables
BlurUtils.h File Reference
#include "include/core/SkSize.h"
#include "include/core/SkSpan.h"
#include "src/core/SkBlurEngine.h"
#include <array>

Go to the source code of this file.

Namespaces

namespace  skgpu
 

Functions

constexpr int skgpu::BlurKernelWidth (int radius)
 
constexpr int skgpu::BlurLinearKernelWidth (int radius)
 
constexpr bool skgpu::BlurIsEffectivelyIdentity (float sigma)
 
int skgpu::BlurSigmaRadius (float sigma)
 
const SkRuntimeEffectskgpu::GetBlur2DEffect (const SkISize &radii)
 
const SkRuntimeEffectskgpu::GetLinearBlur1DEffect (int radius)
 
void skgpu::Compute2DBlurKernel (SkSize sigma, SkISize radius, SkSpan< float > kernel)
 
void skgpu::Compute2DBlurKernel (SkSize sigma, SkISize radius, std::array< SkV4, kMaxBlurSamples/4 > &kernel)
 
void skgpu::Compute1DBlurKernel (float sigma, int radius, SkSpan< float > kernel)
 
void skgpu::Compute2DBlurOffsets (SkISize radius, std::array< SkV4, kMaxBlurSamples/2 > &offsets)
 
void skgpu::Compute1DBlurLinearKernel (float sigma, int radius, std::array< SkV4, kMaxBlurSamples/2 > &offsetsAndKernel)
 
SkBitmap skgpu::CreateIntegralTable (int width)
 
int skgpu::ComputeIntegralTableWidth (float sixSigma)
 
SkBitmap skgpu::CreateCircleProfile (float sigma, float radius, int profileWidth)
 
SkBitmap skgpu::CreateHalfPlaneProfile (int profileWidth)
 
SkBitmap skgpu::CreateRRectBlurMask (const SkRRect &rrectToDraw, const SkISize &dimensions, float sigma)
 

Variables

static constexpr int skgpu::kMaxBlurSamples = SkShaderBlurAlgorithm::kMaxSamples
 
static constexpr float skgpu::kMaxLinearBlurSigma = SkShaderBlurAlgorithm::kMaxLinearSigma