Flutter Engine
The Flutter Engine
|
#include <color_filter.h>
Public Member Functions | |
MatrixColorFilter (ColorMatrix color_matrix) | |
~MatrixColorFilter () override | |
std::shared_ptr< ColorFilterContents > | WrapWithGPUColorFilter (std::shared_ptr< FilterInput > input, ColorFilterContents::AbsorbOpacity absorb_opacity) const override |
Wraps the given filter input with a GPU-based filter that will perform the color operation. The given input will first be rendered to a texture and then filtered. | |
ColorFilterProc | GetCPUColorFilterProc () const override |
Returns a function that can be used to filter unpremultiplied Impeller Colors on the CPU. | |
std::shared_ptr< ColorFilter > | Clone () const override |
Public Member Functions inherited from impeller::ColorFilter | |
ColorFilter () | |
virtual | ~ColorFilter () |
Additional Inherited Members | |
Public Types inherited from impeller::ColorFilter | |
using | ColorFilterProc = std::function< Color(Color)> |
Static Public Member Functions inherited from impeller::ColorFilter | |
static std::shared_ptr< ColorFilter > | MakeBlend (BlendMode blend_mode, Color color) |
static std::shared_ptr< ColorFilter > | MakeMatrix (ColorMatrix color_matrix) |
static std::shared_ptr< ColorFilter > | MakeSrgbToLinear () |
static std::shared_ptr< ColorFilter > | MakeLinearToSrgb () |
static std::shared_ptr< ColorFilter > | MakeComposed (const std::shared_ptr< ColorFilter > &outer, const std::shared_ptr< ColorFilter > &inner) |
Definition at line 90 of file color_filter.h.
|
explicit |
Definition at line 78 of file color_filter.cc.
|
overridedefault |
|
overridevirtual |
Implements impeller::ColorFilter.
Definition at line 98 of file color_filter.cc.
|
overridevirtual |
Returns a function that can be used to filter unpremultiplied Impeller Colors on the CPU.
Implements impeller::ColorFilter.
Definition at line 92 of file color_filter.cc.
|
overridevirtual |
Wraps the given filter input with a GPU-based filter that will perform the color operation. The given input will first be rendered to a texture and then filtered.
Note that this operation has no consideration for the original geometry mask of the filter input. And the entire input texture is treated as color information.
Implements impeller::ColorFilter.
Definition at line 83 of file color_filter.cc.