Flutter Engine
The Flutter Engine
|
#include <SkMaskFilter.h>
Public Member Functions | |
SkRect | approximateFilteredBounds (const SkRect &src) const |
Public Member Functions inherited from SkFlattenable | |
SkFlattenable () | |
virtual Factory | getFactory () const =0 |
virtual const char * | getTypeName () const =0 |
virtual void | flatten (SkWriteBuffer &) const |
virtual Type | getFlattenableType () const =0 |
sk_sp< SkData > | serialize (const SkSerialProcs *=nullptr) const |
size_t | serialize (void *memory, size_t memory_size, const SkSerialProcs *=nullptr) const |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Static Public Member Functions | |
static sk_sp< SkMaskFilter > | MakeBlur (SkBlurStyle style, SkScalar sigma, bool respectCTM=true) |
static sk_sp< SkMaskFilter > | Deserialize (const void *data, size_t size, const SkDeserialProcs *procs=nullptr) |
Static Public Member Functions inherited from SkFlattenable | |
static Factory | NameToFactory (const char name[]) |
static const char * | FactoryToName (Factory) |
static void | Register (const char name[], Factory) |
static sk_sp< SkFlattenable > | Deserialize (Type, const void *data, size_t length, const SkDeserialProcs *procs=nullptr) |
Friends | |
class | SkFlattenable |
Additional Inherited Members | |
Public Types inherited from SkFlattenable | |
enum | Type { kSkColorFilter_Type , kSkBlender_Type , kSkDrawable_Type , kSkDrawLooper_Type , kSkImageFilter_Type , kSkMaskFilter_Type , kSkPathEffect_Type , kSkShader_Type } |
typedef sk_sp< SkFlattenable >(* | Factory) (SkReadBuffer &) |
SkMaskFilter is the base class for object that perform transformations on the mask before drawing it. An example subclass is Blur.
Definition at line 27 of file SkMaskFilter.h.
Returns the approximate bounds that would result from filtering the src rect. The actual result may be different, but it should be contained within the returned bounds.
Definition at line 317 of file SkMaskFilter.cpp.
|
static |
Definition at line 327 of file SkMaskFilter.cpp.
|
static |
Create a blur maskfilter.
style | The SkBlurStyle to use |
sigma | Standard deviation of the Gaussian blur to apply. Must be > 0. |
respectCTM | if true the blur's sigma is modified by the CTM. |
Definition at line 535 of file SkBlurMaskFilterImpl.cpp.
|
friend |
Definition at line 50 of file SkMaskFilter.h.