Flutter Engine
The Flutter Engine
|
#include <SkEmbossMaskFilter.h>
Classes | |
struct | Light |
Public Member Functions | |
SkMask::Format | getFormat () const override |
bool | filterMask (SkMaskBuilder *dst, const SkMask &src, const SkMatrix &, SkIPoint *margin) const override |
SkMaskFilterBase::Type | type () const override |
Public Member Functions inherited from SkMaskFilterBase | |
virtual SkMask::Format | getFormat () const =0 |
virtual bool | filterMask (SkMaskBuilder *dst, const SkMask &src, const SkMatrix &, SkIPoint *margin) const =0 |
virtual Type | type () const =0 |
virtual void | computeFastBounds (const SkRect &src, SkRect *dest) const |
virtual bool | asABlur (BlurRec *) const |
virtual sk_sp< SkImageFilter > | asImageFilter (const SkMatrix &ctm) const |
SkFlattenable::Type | getFlattenableType () const override |
Public Member Functions inherited from SkMaskFilter | |
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 > | Make (SkScalar blurSigma, const Light &light) |
Static Public Member Functions inherited from SkMaskFilterBase | |
static SkFlattenable::Type | GetFlattenableType () |
Static Public Member Functions inherited from SkMaskFilter | |
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) |
Protected Member Functions | |
SkEmbossMaskFilter (SkScalar blurSigma, const Light &light) | |
void | flatten (SkWriteBuffer &) const override |
Protected Member Functions inherited from SkMaskFilterBase | |
SkMaskFilterBase () | |
virtual FilterReturn | filterRectsToNine (const SkRect[], int count, const SkMatrix &, const SkIRect &clipBounds, SkTLazy< NinePatch > *) const |
virtual FilterReturn | filterRRectToNine (const SkRRect &, const SkMatrix &, const SkIRect &clipBounds, SkTLazy< NinePatch > *) const |
Additional Inherited Members | |
Public Types inherited from SkMaskFilterBase | |
enum class | Type { kBlur , kEmboss , kSDF , kShader , kTable } |
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 &) |
Protected Types inherited from SkMaskFilterBase | |
enum | FilterReturn { kFalse_FilterReturn , kTrue_FilterReturn , kUnimplemented_FilterReturn } |
This mask filter creates a 3D emboss look, by specifying a light and blur amount.
Definition at line 30 of file SkEmbossMaskFilter.h.
Definition at line 66 of file SkEmbossMaskFilter.cpp.
|
overridevirtual |
Create a new mask by filter the src mask. If src.fImage == null, then do not allocate or create the dst image but do fill out the other fields in dstMask. If you do allocate a dst image, use SkMask::AllocImage() If this returns false, dst mask is ignored.
dst | the result of the filter. If src.fImage == null, dst should not allocate its image |
src | the original image to be filtered. |
matrix | the CTM |
margin | if not null, return the buffer dx/dy need when calculating the effect. Used when drawing a clipped object to know how much larger to allocate the src before applying the filter. If returning false, ignore this parameter. |
Implements SkMaskFilterBase.
Definition at line 77 of file SkEmbossMaskFilter.cpp.
|
overrideprotectedvirtual |
Override this if your subclass needs to record data that it will need to recreate itself from its CreateProc (returned by getFactory()).
DEPRECATED public : will move to protected ... use serialize() instead
Reimplemented from SkFlattenable.
Definition at line 141 of file SkEmbossMaskFilter.cpp.
|
overridevirtual |
Returns the format of the resulting mask that this subclass will return when its filterMask() method is called.
Implements SkMaskFilterBase.
Definition at line 73 of file SkEmbossMaskFilter.cpp.
|
static |
Definition at line 27 of file SkEmbossMaskFilter.cpp.
|
inlineoverridevirtual |