SkKernel33ProcMaskFilter Class Reference

#include <SkKernel33MaskFilter.h>

Inherits SkMaskFilter.

Inherited by SkKernel33MaskFilter.

Collaboration diagram for SkKernel33ProcMaskFilter:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

Definition at line 22 of file SkKernel33MaskFilter.h.


Constructor & Destructor Documentation

SkKernel33ProcMaskFilter::SkKernel33ProcMaskFilter ( unsigned  percent256 = 256  )  [inline]

Definition at line 24 of file SkKernel33MaskFilter.h.

SkKernel33ProcMaskFilter::SkKernel33ProcMaskFilter ( SkFlattenableReadBuffer rb  )  [protected]

Member Function Documentation

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.

Parameters:
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.
Returns:
true if the dst mask was correctly created.

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.


The documentation for this class was generated from the following file:

Generated on Tue Oct 20 11:03:42 2009 for Skia by  doxygen 1.6.1