 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_DISPLAY_LIST_PAINT_H_
6 #define FLUTTER_IMPELLER_DISPLAY_LIST_PAINT_H_
10 #include "display_list/effects/dl_color_filter.h"
11 #include "display_list/effects/dl_color_source.h"
12 #include "display_list/effects/dl_image_filter.h"
29 const Matrix& effect_transform,
31 using MaskFilterProc = std::function<std::shared_ptr<FilterContents>(
59 std::shared_ptr<ColorSourceContents> color_source_contents,
65 std::shared_ptr<TextureContents> texture_contents,
94 std::shared_ptr<Contents>
WithFilters(std::shared_ptr<Contents> input)
const;
105 std::shared_ptr<Contents> input,
113 std::shared_ptr<Contents>
WithMaskBlur(std::shared_ptr<Contents> input,
119 const Matrix& effect_transform,
123 std::shared_ptr<Contents> WithColorFilter(
124 std::shared_ptr<Contents> input,
131 #endif // FLUTTER_IMPELLER_DISPLAY_LIST_PAINT_H_
std::function< std::shared_ptr< FilterContents >(FilterInput::Ref, const Matrix &effect_transform, Entity::RenderingMode rendering_mode)> ImageFilterProc
FilterContents::BlurStyle style
const flutter::DlColorFilter * color_filter
std::function< std::shared_ptr< FilterContents >(FilterInput::Ref, bool is_solid_color, const Matrix &effect_transform)> MaskFilterProc
std::shared_ptr< FilterContents > CreateMaskBlur(std::shared_ptr< ColorSourceContents > color_source_contents, const flutter::DlColorFilter *color_filter, bool invert_colors, RectGeometry *rect_geom) const
const flutter::DlColorSource * color_source
In filters that use Gaussian distributions, "sigma" is a size of one standard deviation in terms of t...
const flutter::DlImageFilter * image_filter
std::shared_ptr< Contents > WithMaskBlur(std::shared_ptr< Contents > input, bool is_solid_color, const Matrix &ctm) const
std::shared_ptr< FilterContents > WithImageFilter(const FilterInput::Variant &input, const Matrix &effect_transform, Entity::RenderingMode rendering_mode) const
std::function< std::shared_ptr< ColorSourceContents >()> ColorSourceProc
static constexpr Color Black()
bool HasColorFilter() const
Whether this paint has a color filter that can apply opacity.
static bool CanApplyOpacityPeephole(const Paint &paint)
Whether or not a save layer with the provided paint can perform the opacity peephole optimization.
std::shared_ptr< ColorSourceContents > CreateContents() const
std::optional< MaskBlurDescriptor > mask_blur_descriptor
std::shared_ptr< Contents > WithFilters(std::shared_ptr< Contents > input) const
Wrap this paint's configured filters to the given contents.
A 4x4 matrix using column-major storage.
std::shared_ptr< Contents > WithFiltersForSubpassTarget(std::shared_ptr< Contents > input, const Matrix &effect_transform=Matrix()) const
Wrap this paint's configured filters to the given contents of subpass target.