50 char* chars = (
char*)(ptr + 1);
51 memcpy(chars, str,
len);
60 const size_t lenBytes = 4;
65void SkWriter32::growToAtLeast(
size_t size) {
66 const bool wasExternal = (fExternal !=
nullptr) && (fData == fExternal);
68 fCapacity = 4096 +
std::max(
size, fCapacity + (fCapacity / 2));
70 fData = fInternal.
get();
74 memcpy(fData, fExternal, fUsed);
static constexpr T SkAlign4(T x)
constexpr uint32_t SkToU32(S x)
static sk_sp< SkData > MakeWithCopy(const void *data, size_t length)
static size_t WriteToMemory(const SkMatrix &matrix, void *buffer)
void write32(int32_t value)
void writeSampling(const SkSamplingOptions &sampling)
uint32_t * reservePad(size_t size)
void writeScalar(SkScalar value)
void writeMatrix(const SkMatrix &matrix)
uint32_t * reserve(size_t size)
static size_t WriteStringSize(const char *str, size_t len=(size_t) -1)
bool writeBool(bool value)
sk_sp< SkData > snapshotAsData() const
void writeString(const char *str, size_t len=(size_t) -1)
void realloc(size_t count)
static float max(float r, float g, float b)
unsigned useCenter Optional< SkMatrix > matrix
SkSamplingOptions sampling
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
const SkCubicResampler cubic
const SkFilterMode filter
const SkMipmapMode mipmap