Lines Matching refs:GrowthPolicy
14 GrBlockAllocator::GrBlockAllocator(GrowthPolicy policy, size_t blockIncrementBytes, in GrBlockAllocator()
22 , fN0((policy == GrowthPolicy::kLinear || policy == GrowthPolicy::kExponential) ? 1 : 0) in GrBlockAllocator()
129 GrowthPolicy gp = static_cast<GrowthPolicy>(fGrowthPolicy); in releaseBlock()
130 if (fN0 > 0 && (fN1 > 1 || gp == GrowthPolicy::kFibonacci)) { in releaseBlock()
131 SkASSERT(gp != GrowthPolicy::kFixed); // fixed never needs undoing, fN0 always is 0 in releaseBlock()
132 if (gp == GrowthPolicy::kLinear) { in releaseBlock()
134 } else if (gp == GrowthPolicy::kFibonacci) { in releaseBlock()
140 SkASSERT(gp == GrowthPolicy::kExponential); in releaseBlock()
185 GrowthPolicy gp = static_cast<GrowthPolicy>(fGrowthPolicy); in reset()
186 fN0 = (gp == GrowthPolicy::kLinear || gp == GrowthPolicy::kExponential) ? 1 : 0; in reset()
222 GrowthPolicy gp = static_cast<GrowthPolicy>(fGrowthPolicy); in addBlock()
225 if (gp == GrowthPolicy::kFixed || gp == GrowthPolicy::kLinear) { in addBlock()
227 } else if (gp == GrowthPolicy::kFibonacci) { in addBlock()
230 SkASSERT(gp == GrowthPolicy::kExponential); in addBlock()