Flutter Engine
The Flutter Engine
|
#include <PaintOptions.h>
Friends | |
class | PaintOptionsPriv |
This is the Precompilation analog to SkPaint. It encapsulates a set of options for each field of the SkPaint (e.g., colorFilters, imageFilters, etc). Many of the specific details of an SkPaint that are irrelevant to the final compiled Pipelines are abstracted away (e.g., the SkPaint's color field).
How Precompilation works in practice is a PaintOptions object is created and a set of options for each slot (e.g., shader, blender) are added. When passed to the Precompile() function, all the combinations specified by the PaintOptions will be created and precompiled.
To be concrete, if a PaintOptions object had two shader options and two blender options, four combinations would be precompiled.
Definition at line 50 of file PaintOptions.h.
|
default |
Constructs a PaintOptions object with default values. It is equivalent to a default initialized SkPaint.
|
default |
|
default |
|
inline |
Definition at line 128 of file PaintOptions.h.
|
inline |
Definition at line 117 of file PaintOptions.h.
|
inline |
Definition at line 105 of file PaintOptions.h.
|
inline |
Definition at line 81 of file PaintOptions.h.
|
inline |
Definition at line 93 of file PaintOptions.h.
|
inline |
Definition at line 69 of file PaintOptions.h.
|
inline |
Definition at line 139 of file PaintOptions.h.
|
default |
|
inline |
Definition at line 59 of file PaintOptionsPriv.h.
|
inline |
Definition at line 62 of file PaintOptionsPriv.h.
void skgpu::graphite::PaintOptions::setBlenders | ( | SkSpan< const sk_sp< PrecompileBlender > > | blenders | ) |
Sets the blender options used when generating precompilation combinations.
This corresponds to SkPaint's setBlender() method
blenders | The options used for blending when generating precompilation combinations. |
Definition at line 64 of file PaintOptions.cpp.
void skgpu::graphite::PaintOptions::setBlendModes | ( | SkSpan< const SkBlendMode > | blendModes | ) |
Sets the blend mode options used when generating precompilation combinations.
This corresponds to SkPaint's setBlendMode() method
blendModes | The options used for blending when generating precompilation combinations. |
Definition at line 59 of file PaintOptions.cpp.
void skgpu::graphite::PaintOptions::setColorFilters | ( | SkSpan< const sk_sp< PrecompileColorFilter > > | colorFilters | ) |
Sets the color filter options used when generating precompilation combinations.
This corresponds to SkPaint's setColorFilter() method
colorFilters | The options used for color filtering when generating precompilation combinations. |
Definition at line 50 of file PaintOptions.cpp.
|
inline |
Sets the dither setting used when generating precompilation combinations
This corresponds to SkPaint's setDither() method
dither | the dither setting used when generating precompilation combinations. |
Definition at line 138 of file PaintOptions.h.
void skgpu::graphite::PaintOptions::setImageFilters | ( | SkSpan< const sk_sp< PrecompileImageFilter > > | imageFilters | ) |
Sets the image filter options used when generating precompilation combinations.
This corresponds to SkPaint's setImageFilter() method
imageFilters | The options used for image filtering when generating precompilation combinations. |
Definition at line 40 of file PaintOptions.cpp.
void skgpu::graphite::PaintOptions::setMaskFilters | ( | SkSpan< const sk_sp< PrecompileMaskFilter > > | maskFilters | ) |
Sets the mask filter options used when generating precompilation combinations.
This corresponds to SkPaint's setMaskFilter() method
maskFilters | The options used for mask filtering when generating precompilation combinations. |
Definition at line 45 of file PaintOptions.cpp.
void skgpu::graphite::PaintOptions::setShaders | ( | SkSpan< const sk_sp< PrecompileShader > > | shaders | ) |
Sets the shader options used when generating precompilation combinations.
This corresponds to SkPaint's setShader() method
shaders | The options used for shading when generating precompilation combinations. |
Definition at line 35 of file PaintOptions.cpp.
|
friend |
Definition at line 146 of file PaintOptions.h.