#include <SkImageFilter_Base.h>
Definition at line 147 of file SkImageFilter_Base.h.
◆ cropRect()
std::optional< SkRect > SkImageFilter_Base::Common::cropRect |
( |
| ) |
const |
|
inline |
◆ getInput()
◆ inputCount()
int SkImageFilter_Base::Common::inputCount |
( |
| ) |
const |
|
inline |
◆ inputs()
◆ unflatten()
bool SkImageFilter_Base::Common::unflatten |
( |
SkReadBuffer & |
buffer, |
|
|
int |
expectedInputs |
|
) |
| |
Attempt to unflatten 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.
Definition at line 177 of file SkImageFilter.cpp.
177 {
180 return false;
181 }
182 if (!
buffer.validate(expectedCount < 0 ||
count == expectedCount)) {
183 return false;
184 }
185
186#if defined(SK_BUILD_FOR_FUZZER)
188 return false;
189 }
190#endif
191
193 for (
int i = 0; i <
count; i++) {
196 return false;
197 }
198 }
199
201 static constexpr uint32_t kHasAll_CropEdge = 0x0F;
205 return false;
206 }
207
211 return false;
212 }
213 if (
flags == kHasAll_CropEdge) {
215 }
216 }
218}
static bool SkIsValidRect(const SkRect &rect)
@ kRemoveDeprecatedCropRect
FlutterSemanticsFlag flags
static const uint8_t buffer[]
sk_sp< SkBlender > blender SkRect rect
The documentation for this class was generated from the following files: