15 return a.roundUpCapacity(capacity);
20 return a.growthFactorCapacity(capacity, growthFactor);
27 return std::min(SIZE_MAX / sizeOfT, (
size_t)INT_MAX);
69 for (
int i = 1;
i < 33; ++
i) {
81 for (
int i = 1;
i < 33; ++
i) {
DEF_TEST(SkContainerAllocatorBasic, reporter)
static int max_capacity(size_t sizeOfT)
#define REPORTER_ASSERT(r, cond,...)
static float min(float r, float g, float b)
static constexpr int64_t kCapacityMultiple
static size_t GrowthFactorCapacity(const SkContainerAllocator &a, int capacity, double growthFactor)
static size_t RoundUpCapacity(const SkContainerAllocator &a, int64_t capacity)