Skia
2DGraphicsLibrary
|
Public Member Functions | |
bool | unflatten (SkReadBuffer &, int expectedInputs) |
Attempt to unflatten the cropRect and the expected number of input filters. More... | |
const CropRect & | cropRect () const |
int | inputCount () const |
sk_sp< SkImageFilter > * | inputs () const |
sk_sp< SkImageFilter > | getInput (int index) const |
Private Member Functions | |
void | allocInputs (int count) |
Private Attributes | |
CropRect | fCropRect |
SkAutoSTArray< 2, sk_sp < SkImageFilter > > | fInputs |
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.