| Flutter Impeller |

Namespaces | Typedefs | Functions
gaussian_blur_filter_contents.cc File Reference
`#include "impeller/entity/contents/filters/gaussian_blur_filter_contents.h"`
`#include <cmath>`
`#include "flutter/fml/make_copyable.h"`
`#include "impeller/entity/contents/clip_contents.h"`
`#include "impeller/entity/contents/content_context.h"`
`#include "impeller/entity/texture_downsample.frag.h"`
`#include "impeller/entity/texture_fill.frag.h"`
`#include "impeller/entity/texture_fill.vert.h"`
`#include "impeller/geometry/color.h"`
`#include "impeller/renderer/render_pass.h"`
`#include "impeller/renderer/vertex_buffer_builder.h"`

Go to the source code of this file.

## Namespaces
| impeller

## Typedefs
using | impeller::GaussianBlurVertexShader = GaussianBlurPipeline::VertexShader
using | impeller::GaussianBlurFragmentShader = GaussianBlurPipeline::FragmentShader

## Functions
KernelSamples | impeller::GenerateBlurInfo (BlurParameters parameters)
GaussianBlurPipeline::FragmentShader::KernelSamples | impeller::LerpHackKernelSamples (KernelSamples parameters)

## Variable Documentation

## ◆ blur_radius

Vector2 blur_radius

Blur radius in source pixels based on scaled_sigma.

Definition at line 83 of file gaussian_blur_filter_contents.cc.

Referenced by impeller::GaussianBlurFilterContents::CalculateScale(), impeller::GaussianBlurFilterContents::GetFilterSourceCoverage(), impeller::SolidRRectBlurContents::Render(), impeller::testing::TEST(), and impeller::testing::TEST_P().

## ◆ effective_scalar

Vector2 effective_scalar

The effective scalar of the down-sample pass. This isn't usually exactly as we'd calculate because it has to be rounded to integer boundaries for generating the texture for the output.

Definition at line 208 of file gaussian_blur_filter_contents.cc.

## ◆ local_padding

Vector2 local_padding

Padding in unrotated local space.

Definition at line 87 of file gaussian_blur_filter_contents.cc.

## ◆ padding

Vector2 padding

The halo padding in source space.

Definition at line 85 of file gaussian_blur_filter_contents.cc.

Referenced by impeller::DriverInfoVK::DumpToLog(), and impeller::testing::TEST_P().

## ◆ scaled_sigma

Vector2 scaled_sigma

Sigma when considering an entity's scale and the effect transform.

Definition at line 81 of file gaussian_blur_filter_contents.cc.

Referenced by impeller::GaussianBlurFilterContents::GetFilterSourceCoverage().

## ◆ source_space_offset

Vector2 source_space_offset

The translation that is used to get from source space to unrotated local space.

Definition at line 79 of file gaussian_blur_filter_contents.cc.

## ◆ source_space_scalar

Vector2 source_space_scalar

The scalar that is used to get from source space to unrotated local space.

Definition at line 76 of file gaussian_blur_filter_contents.cc.

## ◆ subpass_size

ISize subpass_size

The output size of the down-sampling pass.

Definition at line 201 of file gaussian_blur_filter_contents.cc.

Referenced by impeller::Contents::RenderToSnapshot(), and impeller::Canvas::SaveLayer().

## ◆ transform

Matrix transform

Transforms from unrotated local space to position the output from the down-sample pass. This can differ if we request a coverage hint but it is rejected, as is the case with backdrop filters.

Definition at line 213 of file gaussian_blur_filter_contents.cc.

Referenced by impeller::AdvancedBlend(), impeller::ColorSourceContents::AppliesAlphaForStrokeCoverage(), impeller::CircleGeometry::ComputeAlphaCoverage(), impeller::StrokePathGeometry::ComputeAlphaCoverage(), impeller::LineGeometry::ComputePixelHalfWidth(), impeller::Geometry::ComputeStrokeAlphaCoverage(), impeller::Canvas::Concat(), impeller::RectGeometry::CoversArea(), impeller::LineGeometry::CoversArea(), impeller::RoundRectGeometry::CoversArea(), impeller::FillPathGeometry::CoversArea(), impeller::RectGeometry::GetCoverage(), impeller::DlVerticesGeometry::GetCoverage(), impeller::BorderMaskBlurFilterContents::GetFilterCoverage(), impeller::DirectionalMorphologyFilterContents::GetFilterCoverage(), impeller::MatrixFilterContents::GetFilterCoverage(), impeller::Entity::GetShaderTransform(), impeller::Path::GetTransformedBoundingBox(), impeller::TRect< Scalar >::GetTransformedPoints(), impeller::interop::ImpellerDisplayListBuilderSetTransform(), impeller::LinearGradientContents::IsOpaque(), impeller::RadialGradientContents::IsOpaque(), impeller::SweepGradientContents::IsOpaque(), impeller::SolidColorContents::IsOpaque(), impeller::TiledTextureContents::IsOpaque(), impeller::PipelineBlend(), impeller::Canvas::PreConcat(), impeller::VerticesSimpleBlendContents::SetEffectTransform(), impeller::Entity::SetTransform(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::compiler::ToLowerCase(), impeller::Canvas::Transform(), impeller::TRect< Scalar >::TransformAndClipBounds(), impeller::TRect< Scalar >::TransformBounds(), and impeller::DlDispatcherBase::transformFullPerspective().

## ◆ uvs

Quad uvs

The UVs that will be used for drawing to the down-sampling pass. This effectively is chopping out a region of the input.

Definition at line 204 of file gaussian_blur_filter_contents.cc.

Referenced by impeller::testing::TEST_P().