Home
last modified time | relevance | path

Searched refs:growthFactor (Results 1 – 4 of 4) sorted by relevance

/external/skia/src/base/
DSkContainers.cpp53 SkSpan<std::byte> SkContainerAllocator::allocate(int capacity, double growthFactor) { in allocate() argument
55 SkASSERT(growthFactor >= 1.0); in allocate()
58 if (growthFactor > 1.0 && capacity > 0) { in allocate()
59 capacity = this->growthFactorCapacity(capacity, growthFactor); in allocate()
76 size_t SkContainerAllocator::growthFactorCapacity(int capacity, double growthFactor) const { in growthFactorCapacity()
78 SkASSERT(growthFactor >= 1.0); in growthFactorCapacity()
81 const int64_t capacityGrowth = static_cast<int64_t>(capacity * growthFactor); in growthFactorCapacity()
/external/skia/include/private/base/
DSkContainers.h21 SkSpan<std::byte> allocate(int capacity, double growthFactor = 1.0);
33 size_t growthFactorCapacity(int capacity, double growthFactor) const;
DSkTArray.h529 static SkSpan<std::byte> Allocate(int capacity, double growthFactor = 1.0) {
530 return SkContainerAllocator{sizeof(T), kMaxCapacity}.allocate(capacity, growthFactor);
595 void checkRealloc(int delta, double growthFactor) { in checkRealloc() argument
616 SkSpan<std::byte> allocation = Allocate(newCount, growthFactor); in checkRealloc()
/external/skia/tests/
DSkContainersTest.cpp19 const SkContainerAllocator& a, int capacity, double growthFactor) { in GrowthFactorCapacity()
20 return a.growthFactorCapacity(capacity, growthFactor); in GrowthFactorCapacity()