4#ifndef SkContainers_DEFINED
5#define SkContainers_DEFINED
18 , fMaxCapacity{maxCapacity} {}
26 static constexpr size_t RoundUp(
size_t capacity) {
27 return SkAlignTo(capacity *
sizeof(
T), kCapacityMultiple) /
sizeof(
T);
38 size_t roundUpCapacity(int64_t capacity)
const;
41 size_t growthFactorCapacity(
int capacity,
double growthFactor)
const;
43 const size_t fSizeOfT;
44 const int64_t fMaxCapacity;
static constexpr size_t SkAlignTo(size_t x, size_t alignment)
SK_SPI void sk_report_container_overflow_and_die()
SkSpan< std::byte > sk_allocate_throw(size_t size)
SkSpan< std::byte > sk_allocate_canfail(size_t size)
SkContainerAllocator(size_t sizeOfT, int maxCapacity)
static constexpr size_t RoundUp(size_t capacity)
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
static constexpr int64_t kCapacityMultiple