Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkImageFilter::Common Class Reference

Public Member Functions

bool unflatten (SkReadBuffer &, int expectedInputs)
 Attempt to unflatten the cropRect and the expected number of input filters. More...
 
const CropRectcropRect () const
 
int inputCount () const
 
sk_sp< SkImageFilter > * inputs () const
 
sk_sp< SkImageFiltergetInput (int index) const
 

Private Member Functions

void allocInputs (int count)
 

Private Attributes

CropRect fCropRect
 
SkAutoSTArray< 2, sk_sp
< SkImageFilter > > 
fInputs
 

Member Function Documentation

bool SkImageFilter::Common::unflatten ( SkReadBuffer &  ,
int  expectedInputs 
)

Attempt to unflatten the cropRect and the expected number of input filters.

If any number of input filters is valid, pass -1. If this fails (i.e. corrupt buffer or contents) then return false and common will be left uninitialized. If this returns true, then inputCount() is the number of found input filters, each of which may be NULL or a valid imagefilter.


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