69size_t SkPath::writeToMemoryAsRRect(
void* storage)
const {
106 if (
size_t bytes = this->writeToMemoryAsRRect(storage)) {
119 size_t size = 4 *
sizeof(int32_t);
122 size = safe.
add(size, safe.
mul(vbs,
sizeof(uint8_t)));
158 if (!
buffer.readU32(&packed)) {
167 return this->readFromMemory_EQ4Or5(storage,
length);
172size_t SkPath::readAsRRect(
const void* storage,
size_t length) {
175 if (!
buffer.readU32(&packed)) {
210size_t SkPath::readFromMemory_EQ4Or5(
const void* storage,
size_t length) {
213 if (!
buffer.readU32(&packed)) {
217 bool verbsAreReversed =
true;
219 verbsAreReversed =
false;
224 return this->readAsRRect(storage,
length);
231 int32_t pts, cnx, vbs;
238 const uint8_t* verbs =
buffer.skipCount<uint8_t>(vbs);
246 if (pts == 0 && cnx == 0) {
256 if (verbsAreReversed) {
257 uint8_t* tmpVerbs = (uint8_t*)reversedStorage.
reset(vbs);
258 for (
int i = 0; i < vbs; ++i) {
259 tmpVerbs[i] = verbs[vbs - i - 1];
static const int points[]
SkPathVerbAnalysis sk_path_analyze_verbs(const uint8_t verbs[], int count)
static unsigned extract_version(uint32_t packed)
static SkPathFillType extract_filltype(uint32_t packed)
@ kJustPublicData_Version
@ kVerbsAreStoredForward_Version
@ kType_SerializationShift
@ kFillType_SerializationShift
@ kDirection_SerializationShift
@ kVersion_SerializationMask
static SerializationType extract_serializationtype(uint32_t packed)
static constexpr const T & SkTPin(const T &x, const T &lo, const T &hi)
constexpr int32_t SkToS32(S x)
constexpr unsigned SkToUInt(S x)
Type::kYUV Type::kRGBA() int(0.7 *637)
void * reset(size_t size=0, OnShrink shrink=kAlloc_OnShrink)
static sk_sp< SkData > MakeUninitialized(size_t length)
static SkPath MakePath(const SkPathVerbAnalysis &analysis, const SkPoint points[], const uint8_t verbs[], int verbCount, const SkScalar conics[], SkPathFillType fillType, bool isVolatile)
const SkPoint * points() const
const SkScalar * conicWeights() const
bool isRRect(SkRRect *rrect, bool *isCCW, unsigned *start) const
const uint8_t * verbsBegin() const
bool isOval(SkRect *rect, bool *isCCW, unsigned *start) const
size_t readFromMemory(const void *buffer, size_t length)
void setFillType(SkPathFillType ft)
SkPath & addRRect(const SkRRect &rrect, SkPathDirection dir=SkPathDirection::kCW)
sk_sp< SkData > serialize() const
size_t writeToMemory(void *buffer) const
static bool ReadFromBuffer(SkRBuffer *buffer, SkRRect *rr)
static void WriteToBuffer(const SkRRect &rr, SkWBuffer *buffer)
void setOval(const SkRect &oval)
static constexpr size_t kSizeInMemory
size_t add(size_t x, size_t y)
size_t alignUp(size_t x, size_t alignment)
size_t mul(size_t x, size_t y)
static const uint8_t buffer[]
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir