#include <SkKernel33MaskFilter.h>
Inherits SkMaskFilter.
Inherited by SkKernel33MaskFilter.
Public Member Functions | |
SkKernel33ProcMaskFilter (unsigned percent256=256) | |
virtual uint8_t | computeValue (uint8_t *const *srcRows)=0 |
virtual SkMask::Format | getFormat () |
virtual bool | filterMask (SkMask *, const SkMask &, const SkMatrix &, SkIPoint *) |
virtual void | flatten (SkFlattenableWriteBuffer &wb) |
Protected Member Functions | |
SkKernel33ProcMaskFilter (SkFlattenableReadBuffer &rb) |
Definition at line 22 of file SkKernel33MaskFilter.h.
SkKernel33ProcMaskFilter::SkKernel33ProcMaskFilter | ( | unsigned | percent256 = 256 |
) | [inline] |
Definition at line 24 of file SkKernel33MaskFilter.h.
SkKernel33ProcMaskFilter::SkKernel33ProcMaskFilter | ( | SkFlattenableReadBuffer & | rb | ) | [protected] |
virtual uint8_t SkKernel33ProcMaskFilter::computeValue | ( | uint8_t *const * | srcRows | ) | [pure virtual] |
Implemented in SkKernel33MaskFilter.
virtual bool SkKernel33ProcMaskFilter::filterMask | ( | SkMask * | dst, | |
const SkMask & | src, | |||
const SkMatrix & | , | |||
SkIPoint * | margin | |||
) | [virtual] |
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. |
Reimplemented from SkMaskFilter.
virtual void SkKernel33ProcMaskFilter::flatten | ( | SkFlattenableWriteBuffer & | ) | [virtual] |
Override this to write data specific to your subclass into the buffer, being sure to call your super-class' version first. This data will later be passed to your Factory function, returned by getFactory().
Reimplemented from SkMaskFilter.
Reimplemented in SkKernel33MaskFilter.
virtual SkMask::Format SkKernel33ProcMaskFilter::getFormat | ( | ) | [virtual] |
Returns the format of the resulting mask that this subclass will return when its filterMask() method is called.
Implements SkMaskFilter.